SELECT 
  cscart_images_links.*, 
  cscart_images.image_path, 
  cscart_common_descriptions.description AS alt, 
  cscart_images.image_x, 
  cscart_images.image_y, 
  cscart_images.image_id as images_image_id 
FROM 
  cscart_images_links 
  LEFT JOIN cscart_images ON cscart_images_links.detailed_id = cscart_images.image_id 
  LEFT JOIN cscart_common_descriptions ON cscart_common_descriptions.object_id = cscart_images.image_id 
  AND cscart_common_descriptions.object_holder = 'images' 
  AND cscart_common_descriptions.lang_code = 'ro' 
WHERE 
  cscart_images_links.object_type = 'category' 
  AND cscart_images_links.type = 'M' 
  AND cscart_images_links.object_id IN (
    34391, 41289, 1569, 1337, 1334, 1169, 
    1231, 1117, 1321, 1297, 1021, 1022, 
    1149, 5109, 1328, 13058, 30005, 37603, 
    13060, 1019, 30002, 12963, 28750, 7382
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00284

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "124.49"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "24.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_images_links",
            "access_type": "range",
            "possible_keys": [
              "object_id"
            ],
            "key": "object_id",
            "used_key_parts": [
              "object_id",
              "object_type",
              "type"
            ],
            "key_length": "81",
            "rows_examined_per_scan": 24,
            "rows_produced_per_join": 24,
            "filtered": "100.00",
            "index_condition": "((`maniamall_cscart`.`cscart_images_links`.`object_type` = 'category') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'M') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (34391,41289,1569,1337,1334,1169,1231,1117,1321,1297,1021,1022,1149,5109,1328,13058,30005,37603,13060,1019,30002,12963,28750,7382)))",
            "cost_info": {
              "read_cost": "47.36",
              "eval_cost": "2.40",
              "prefix_cost": "49.76",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "pair_id",
              "object_id",
              "object_type",
              "image_id",
              "detailed_id",
              "type",
              "position"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_images",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "image_id"
            ],
            "key_length": "3",
            "ref": [
              "maniamall_cscart.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 24,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "23.37",
              "eval_cost": "2.40",
              "prefix_cost": "75.53",
              "data_read_per_join": "18K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y"
            ],
            "attached_condition": "<if>(is_not_null_compl(cscart_images), (`maniamall_cscart`.`cscart_images_links`.`detailed_id` = `maniamall_cscart`.`cscart_images`.`image_id`), true)"
          }
        },
        {
          "table": {
            "table_name": "cscart_common_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "lang_code",
              "object_holder"
            ],
            "key_length": "107",
            "ref": [
              "maniamall_cscart.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 24,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "22.56",
              "eval_cost": "2.40",
              "prefix_cost": "100.49",
              "data_read_per_join": "14K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ],
            "attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`maniamall_cscart`.`cscart_common_descriptions`.`object_id` = `maniamall_cscart`.`cscart_images`.`image_id`), true)"
          }
        }
      ]
    }
  }
}

Result

pair_id object_id object_type image_id detailed_id type position image_path alt image_x image_y images_image_id
25054 1569 category 0 25291 M 0 46874445-2-zoom.jpg 700 700 25291
167155 1297 category 0 167392 M 0 Alimentatoare_si_Incarcatoare.jpg 500 500 167392
167238 1021 category 0 167475 M 0 Baterii_Acumulatori_si_Incarcatoare.jpg 800 800 167475
167243 1022 category 0 167480 M 0 Prelungitoare.jpg 640 480 167480
167244 1149 category 0 167481 M 0 prize.jpg 700 700 167481
167245 1019 category 0 167482 M 0 electrice_diverse.jpg 500 500 167482
167247 1321 category 0 167484 M 0 Reflectoare_si_Proiectoare.jpg 500 500 167484
171740 1117 category 0 171977 M 0 becuri.jpg 519 400 171977
179201 1337 category 0 179438 M 0 Corpuri_de_Iluminat.jpg 620 374 179438
179202 1328 category 0 179439 M 0 Instalatii_de_Craciun.jpg 900 962 179439
179203 1231 category 0 179440 M 0 Benzi_LED.jpg 800 800 179440
179204 1169 category 0 179441 M 0 Lanterne.jpg 600 317 179441
179205 1334 category 0 179442 M 0 Veioze_si_Lampi.jpg 800 800 179442
323205 5109 category 0 323442 M 0 Stechere_si_Cuple.jpg 450 450 323442
885110 7382 category 0 885347 M 0 transformatoare-convertoare.jpg 800 600 885347
1285218 12963 category 0 1285455 M 0 sigurante-electrice.jpg 450 450 1285455
1293106 13058 category 0 1293343 M 0 accesorii-corpuri-de-iluminat.jpg 800 800 1293343
1293137 13060 category 0 1293374 M 0 cabluri-electrice-si-conductori.jpg 450 450 1293374
2067464 30002 category 0 2067716 M 0 lumini-de-veghe.jpg 177 177 2067716
2067505 30005 category 0 2067757 M 0 alte-surse-de-lumina.jpg 177 177 2067757
3263766 34391 category 0 3264019 M 0 Accesorii-Electrice.jpg Accesorii Electrice 1600 1600 3264019
3647710 37603 category 0 3647963 M 0 becuri-tip-led.jpg 177 177 3647963
3833100 41289 category 0 3833353 M 0 Proiectoare-si-Lampi-de-Lucru.jpg Proiectoare si Lampi de Lucru 550 550 3833353