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 = 'A' 
  AND cscart_images_links.object_id IN (
    1128285, 1128289, 1129605, 1128299, 
    1199097, 1718556, 1128294, 1129606, 
    1128290, 1199098, 1129177, 1128108, 
    1199099, 1199095, 1129597, 1128097, 
    1128078, 1193387, 1198929, 1198866, 
    1198921
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00546

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "147.60"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "29.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": 29,
            "rows_produced_per_join": 29,
            "filtered": "100.00",
            "index_condition": "((`maniamall_cscart`.`cscart_images_links`.`object_type` = 'product') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'A') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (1128285,1128289,1129605,1128299,1199097,1718556,1128294,1129606,1128290,1199098,1129177,1128108,1199099,1199095,1129597,1128097,1128078,1193387,1198929,1198866,1198921)))",
            "cost_info": {
              "read_cost": "52.35",
              "eval_cost": "2.90",
              "prefix_cost": "55.25",
              "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": 29,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "28.87",
              "eval_cost": "2.90",
              "prefix_cost": "87.02",
              "data_read_per_join": "22K"
            },
            "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": 29,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "28.68",
              "eval_cost": "2.90",
              "prefix_cost": "118.60",
              "data_read_per_join": "17K"
            },
            "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
1788521 1128078 product 0 1788770 A 0 824503c14d29985d628f857139a8.jpg 714 692 1788770
1788522 1128078 product 0 1788771 A 0 PODUSZKA-NA-KRZESLO-OGRODOWA-DEKORACYJNA-40x40-Rodzaj-Dekoracyjna.jpg 1000 1000 1788771
1788614 1128097 product 0 1788863 A 0 73a494604768b353a6444acdff23_ckmv-sa_20us-6r_6u8i-ib.jpg 1000 1000 1788863
1788618 1128097 product 0 1788867 A 0 gri_inchiss.jpg 720 540 1788867
1792281 1129177 product 0 1792530 A 0 leagan-balansoar-dreptunghiular-suspendat-pentru-casa-sau-gradina-cu-franjuri-150kg-gri-_4vqp-ho.jpg 750 750 1792530
1792282 1129177 product 0 1792531 A 0 leagan-balansoar-dreptunghiular-suspendat-pentru-casa-sau-gradina-cu-franjuri-150kg-gri-_hp6u-8s.jpg 750 750 1792531
1792890 1128294 product 0 1793139 A 0 vJx8PtF_sesp-c7.jpg 1200 1500 1793139
1792891 1128290 product 0 1793140 A 0 vJx8PtF_q69i-44.jpg 1200 1500 1793140
1792892 1128289 product 0 1793141 A 0 vJx8PtF_nkv9-8o.jpg 1200 1500 1793141
1793238 1129597 product 0 1793487 A 0 73a494604768b353a6444acdff23_ckmv-sa_h4yq-ao.jpg 1000 1000 1793487
1793260 1129605 product 0 1793509 A 0 vJx8PtF_nkv9-8o_6kmw-tz.jpg 1200 1500 1793509
1793263 1129606 product 0 1793512 A 0 vJx8PtF_nkv9-8o_6kmw-tz_gt1z-cl.jpg 1200 1500 1793512
1793683 1129606 product 0 1793932 A 0 Tq7g1VK.jpg 960 640 1793932
1793684 1129605 product 0 1793933 A 0 Tq7g1VK_8gbh-a0.jpg 960 640 1793933
1793687 1128299 product 0 1793936 A 0 Tq7g1VK_32z1-gf.jpg 960 640 1793936
1793689 1128294 product 0 1793938 A 0 Tq7g1VK_ojm9-wv.jpg 960 640 1793938
1793690 1128290 product 0 1793939 A 0 Tq7g1VK_zbiv-yy.jpg 960 640 1793939
1793691 1128289 product 0 1793940 A 0 Tq7g1VK_laod-xm.jpg 960 640 1793940
1793693 1128285 product 0 1793942 A 0 Tq7g1VK_fsce-d1.jpg 960 640 1793942
1932152 1199095 product 0 1932404 A 0 blue_edited_dim.png 600 600 1932404
1932280 1199097 product 0 1932532 A 0 grey_edited_dim.png 700 700 1932532
1932291 1199098 product 0 1932543 A 0 brown_edited_dim.png 700 700 1932543
3663018 1199099 product 0 3663271 A 0 1_-_Copy.jpg 650 650 3663271
3897542 1718556 product 0 3897795 A 0 Perna-pentru-sezlong-de-terasa-sau-gradina--bumbac-cu-umplutura-moale--curele-de-fixare--160x50x4-cm--culoare-Albastru_fsl7-0j.jpg Perna pentru sezlong de terasa sau gradina, bumbac cu umplutura moale, curele de fixare, 160x50x4 cm, culoare Albastru 1024 1024 3897795