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 = 'product' 
  AND cscart_images_links.type = 'M' 
  AND cscart_images_links.object_id IN (
    1128285, 1128289, 1129605, 1129852, 
    525901, 1718556, 2055715, 1128299, 
    1199097, 1128294, 1129606, 1373431, 
    1444124, 1128290, 1722316, 1199098, 
    1373435, 1373432, 1128108, 1199099, 
    1199095, 1129597, 1128097, 1128078, 
    1129869, 1129863, 1129865, 1193387, 
    1129867, 1198929, 1198866, 1198921, 
    1129873, 1129857, 1129861, 1129864
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00163

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "187.63"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "36.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": 36,
            "rows_produced_per_join": 36,
            "filtered": "100.00",
            "index_condition": "((`maniamall_cscart`.`cscart_images_links`.`object_type` = 'product') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'M') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (1128285,1128289,1129605,1129852,525901,1718556,2055715,1128299,1199097,1128294,1129606,1373431,1444124,1128290,1722316,1199098,1373435,1373432,1128108,1199099,1199095,1129597,1128097,1128078,1129869,1129863,1129865,1193387,1129867,1198929,1198866,1198921,1129873,1129857,1129861,1129864)))",
            "cost_info": {
              "read_cost": "71.72",
              "eval_cost": "3.60",
              "prefix_cost": "75.32",
              "data_read_per_join": "3K"
            },
            "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": 36,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "35.10",
              "eval_cost": "3.60",
              "prefix_cost": "114.02",
              "data_read_per_join": "27K"
            },
            "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": 36,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "34.01",
              "eval_cost": "3.60",
              "prefix_cost": "151.63",
              "data_read_per_join": "21K"
            },
            "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
817960 525901 product 0 818197 M 0 perna-decorativa-pufoasa-catifelata-culoare-verde-dimensiune-43x43cm-.jpg 1200 876 818197
1788520 1128078 product 0 1788769 M 0 0e2e73f9488a8395d7849a703422__1_.jpg 1000 1000 1788769
1788655 1128108 product 0 1788904 M 0 ysHFMqo.jpg 650 650 1788904
1789076 1128285 product 0 1789325 M 0 Oc7xPdN.jpg 650 650 1789325
1789082 1128290 product 0 1789331 M 0 1TOVNHd.jpg 650 650 1789331
1792522 1128097 product 0 1792771 M 0 gri_inchis2.jpg 650 650 1792771
1792593 1128289 product 0 1792842 M 0 W6LEXje.jpg 650 650 1792842
1792601 1128294 product 0 1792850 M 0 YWaqxkW.jpg 650 650 1792850
1793241 1129597 product 0 1793490 M 0 1xgalben.jpg 650 650 1793490
1793262 1129605 product 0 1793511 M 0 ssntzN1.jpg 650 650 1793511
1793265 1129606 product 0 1793514 M 0 qgjngSE.jpg 650 650 1793514
1793468 1128299 product 0 1793717 M 0 gdlxYfs.jpg 650 650 1793717
1793703 1129852 product 0 1793952 M 0 S74Ukpd.jpg 798 462 1793952
1793708 1129857 product 0 1793957 M 0 negru_banca.jpg 1088 1096 1793957
1793716 1129865 product 0 1793965 M 0 0iJ2fRa_lvvw-lv.jpg 1266 1107 1793965
1793718 1129867 product 0 1793967 M 0 bej__1c_-_Copie.jpg 500 500 1793967
1793720 1129869 product 0 1793969 M 0 0NrTbtm_lrji-xv.jpg 1024 1024 1793969
1793724 1129873 product 0 1793973 M 0 J5XPCKj.jpg 627 583 1793973
1793769 1129864 product 0 1794018 M 0 allb.jpg 1024 1024 1794018
1793772 1129863 product 0 1794021 M 0 dfgbh.jpg 1024 1024 1794021
1796013 1129861 product 0 1796262 M 0 rosunew.jpg 600 600 1796262
1931476 1193387 product 0 1931728 M 0 albastru.jpg 1000 1000 1931728
1931504 1198866 product 0 1931756 M 0 verde_5cue-74.jpg 600 600 1931756
1931616 1198921 product 0 1931868 M 0 50x30_maro.jpg 1000 1000 1931868
1931625 1198929 product 0 1931877 M 0 50x30galben.jpg 1000 1000 1931877
1932279 1199097 product 0 1932531 M 0 grey_edited.png 700 700 1932531
1932290 1199098 product 0 1932542 M 0 brown_edited.png 700 700 1932542
2356303 1373431 product 0 2356555 M 0 fata-de-perna-decorativa-italia-moale-40x40cm-culoare-antracit-.jpg 2000 1891 2356555
2356305 1373432 product 0 2356557 M 0 fata-de-perna-decorativa-italia-moale-40x40cm-culoare-roz-.jpg 458 458 2356557
2356309 1373435 product 0 2356561 M 0 fata-de-perna-decorativa-italia-moale-40x40cm-culoare-verde-deschis-.jpg 458 458 2356561
2710793 1444124 product 0 2711046 M 0 fata-de-perna-decorativa-de-craciun-model-merry-christmas-dimensiune-40x40-albauriu-.jpg 2000 2000 2711046
3661065 1199095 product 0 3661318 M 0 blue_edited.png 700 700 3661318
3663014 1199099 product 0 3663267 M 0 1.jpg 650 650 3663267
3911081 1718556 product 0 3911334 M 0 Perna-pentru-sezlon.jpg Perna pentru sezlong de terasa sau gradina, bumbac cu umplutura moale, curele de fixare, 160x50x4 cm, culoare Albastru 1200 1200 3911334
3912028 1722316 product 0 3912281 M 0 Fata-de-Perna-Decorativa-Springos--design-abstract--dimensiune-40x40--culoare-gri.jpg Fata de Perna Decorativa Springos, design abstract, dimensiune 40x40, culoare gri 2000 2000 3912281
4918513 2055715 product 0 4918766 M 0 Protectie-laterala-patut--pentru-Bebelasi--Ricokids--Bumper-Impletit--Antialergic--Albastru-Roz-Alb.jpg Protectie laterala patut, pentru Bebelasi, Ricokids, Bumper Impletit, Antialergic, Albastru/Roz/Alb 720 540 4918766