SELECT 
  cscart_images.*, 
  cscart_images_links.*, 
  cscart_common_descriptions.description AS alt, 
  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 = 'en' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'M' 
  AND cscart_images_links.object_id IN (
    2702, 2703, 4024, 3649, 4026, 4025, 4973, 
    4972, 4971, 4970, 4969, 4968, 4967, 
    4966, 4965, 4964, 4963, 4962, 4959, 
    4958, 4944, 4942, 4945, 3216, 3215, 
    3213, 3214
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00157

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "69.11"
    },
    "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": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_images_links`.`object_type` = 'product') and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_images_links`.`type` = 'M') and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_images_links`.`object_id` in (2702,2703,4024,3649,4026,4025,4973,4972,4971,4970,4969,4968,4967,4966,4965,4964,4963,4962,4959,4958,4944,4942,4945,3216,3215,3213,3214)))",
            "cost_info": {
              "read_cost": "16.91",
              "eval_cost": "2.90",
              "prefix_cost": "19.81",
              "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": "4",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 29,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "7.25",
              "eval_cost": "2.90",
              "prefix_cost": "29.96",
              "data_read_per_join": "22K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y",
              "is_high_res",
              "transparent",
              "cp_in_opt_list"
            ]
          }
        },
        {
          "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": "108",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 29,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "7.25",
              "eval_cost": "2.90",
              "prefix_cost": "40.11",
              "data_read_per_join": "17K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ]
          }
        }
      ]
    }
  }
}

Result

image_id image_path image_x image_y is_high_res transparent cp_in_opt_list pair_id object_id object_type detailed_id type position alt images_image_id
0 Delivard_Product_Images__61_.jpg 600 600 N N Y 17687 3213 product 13278 M 0 13278
0 K9runttOnBQVMkgNt0lWkRdu5hEwSVnuesroqwtu.jpg 800 800 N N Y 17689 3214 product 13279 M 0 13279
0 Delivard_Product_Images__62_.jpg 600 600 N N Y 17691 3215 product 13280 M 0 13280
0 A9B5CUbhAlK2BryNcP6avPJ3DlpCHvOU3lWTQpK0.jpg 800 800 N N Y 17693 3216 product 13281 M 0 13281
0 Delivard_s4mt-41.jpg 900 900 N N Y 19291 3649 product 14698 M 0 14698
0 Untitled_design_-_2025-08-04T184925.896.jpg 600 600 N N Y 19428 2702 product 14828 M 0 14828
0 Untitled_design_-_2025-08-04T184949.041_fgwm-xt.jpg 600 600 N N Y 19430 2703 product 14830 M 0 14830
0 Delivard_pit4-rs_prhd-nl.jpg 900 900 N N Y 20540 4024 product 15641 M 0 15641
0 Delivard_1z2w-fz_puqx-tc.jpg 900 900 N N Y 20552 4025 product 15645 M 0 15645
0 Delivard_9ts1-ap_2mj5-qv.jpg 900 900 N N Y 20556 4026 product 15649 M 0 15649
0 Delivard_Template_1em3-r2.jpg 900 900 N N Y 24430 4958 product 18346 M 0 18346
0 Delivard_Template_oico-s6.jpg 900 900 N N Y 24435 4959 product 18351 M 0 18351
0 Delivard_aunh-0p_q8bh-q3.jpg 900 900 N N Y 24448 4962 product 18363 M 1 18363
0 Delivard_Template_1ajl-0y.jpg 900 900 N N Y 24346 4942 product 18307 M 2 18307
0 Delivard_bqvf-ht_qhjl-qe.jpg 900 900 N N Y 24460 4963 product 18364 M 2 18364
0 Delivard_oail-ni_ret7-wn.jpg 900 900 N N Y 24461 4964 product 18365 M 2 18365
0 Delivard_kl4s-6c_aqb2-qi.jpg 900 900 N N Y 24462 4965 product 18366 M 2 18366
0 Delivard_n1xn-zh_vtmo-df.jpg 900 900 N N Y 24463 4966 product 18367 M 2 18367
0 Delivard_n3x5-zu_brnl-4l.jpg 900 900 N N Y 24464 4967 product 18368 M 2 18368
0 Delivard_fvd4-1f_zj4q-no.jpg 900 900 N N Y 24465 4968 product 18369 M 2 18369
0 Delivard_ewt6-xu_wpnu-oo.jpg 900 900 N N Y 24466 4969 product 18370 M 2 18370
0 Delivard_1vav-lv_btd7-r7.jpg 900 900 N N Y 24467 4970 product 18371 M 2 18371
0 Delivard_puet-mb_fwyd-5y.jpg 900 900 N N Y 24468 4971 product 18372 M 2 18372
0 Delivard_w7jk-w6_1sai-ax.jpg 900 900 N N Y 24469 4972 product 18373 M 2 18373
0 Delivard_hzx8-ol_zdtg-9n.jpg 900 900 N N Y 24470 4973 product 18374 M 2 18374
0 Delivard_Template_ppu0-j8.jpg 900 900 N N Y 24363 4944 product 18316 M 6 18316
0 Delivard_Template_4yx7-t2.jpg 900 900 N N Y 24367 4945 product 18320 M 6 18320