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 (
    3452, 3454, 3455, 3456, 2395, 2396, 2397, 
    2398, 2106, 2105, 2104, 2103, 3458, 
    3459, 3460, 3461, 2379, 2382, 2380, 
    2381, 2375, 2387, 2388, 2389, 2390, 
    2391, 4294, 4295, 2097, 2096, 2095, 
    2094, 2093, 5624, 5625
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00271

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "84.01"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "35.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": 35,
            "rows_produced_per_join": 35,
            "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 (3452,3454,3455,3456,2395,2396,2397,2398,2106,2105,2104,2103,3458,3459,3460,3461,2379,2382,2380,2381,2375,2387,2388,2389,2390,2391,4294,4295,2097,2096,2095,2094,2093,5624,5625)))",
            "cost_info": {
              "read_cost": "21.01",
              "eval_cost": "3.50",
              "prefix_cost": "24.51",
              "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": "4",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 35,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "8.75",
              "eval_cost": "3.50",
              "prefix_cost": "36.76",
              "data_read_per_join": "27K"
            },
            "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": 35,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "8.75",
              "eval_cost": "3.50",
              "prefix_cost": "49.01",
              "data_read_per_join": "20K"
            },
            "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 4_sm98-wc.jpg 600 600 N N Y 14175 2093 product 10826 M 0 10826
0 6_8gcy-ef.jpg 600 600 N N Y 14181 2095 product 10828 M 0 10828
0 5_ncmg-cc.jpg 600 600 N N Y 14184 2094 product 10827 M 0 10827
0 7_kdtl-eq.jpg 600 600 N N Y 14190 2096 product 10829 M 0 10829
0 9_isja-20.jpg 600 600 N N Y 14195 2097 product 10830 M 0 10830
0 4_u9if-6h.jpg 600 600 N N Y 14225 2103 product 10836 M 0 10836
0 6_i0r6-eh.jpg 600 600 N N Y 14230 2105 product 10838 M 0 10838
0 5_fidf-jd.jpg 600 600 N N Y 14232 2104 product 10837 M 0 10837
0 7_usaq-yf.jpg 600 600 N N Y 14237 2106 product 10839 M 0 10839
0 Double_A_Paper_Image.jpg 600 600 N N Y 15039 2379 product 11485 M 0 11485
0 Double_A_Paper_Image.jpg 600 600 N N Y 15040 2380 product 11485 M 0 11485
0 Double_A_Paper_Image.jpg 600 600 N N Y 15041 2381 product 11485 M 0 11485
0 Double_A_Paper_Image.jpg 600 600 N N Y 15042 2382 product 11485 M 0 11485
0 Delivard_Product_Images__4_.jpg 600 600 N N Y 15058 2391 product 11481 M 0 11481
0 Delivard_Product_Images_-_2025-07-03T115453.888.jpg 600 600 N N Y 15064 2375 product 11488 M 0 11488
0 Delivard_Product_Images_-_2025-07-03T115559.657_ryvv-bm.jpg 600 600 N N Y 15069 2387 product 11493 M 0 11493
0 Delivard_Product_Images_-_2025-07-03T115726.323_i6no-w2.jpg 600 600 N N Y 15074 2388 product 11498 M 0 11498
0 Delivard_Product_Images_-_2025-07-03T115644.109_uhg3-ci.jpg 600 600 N N Y 15079 2389 product 11503 M 0 11503
0 Delivard_Product_Images_-_2025-07-03T115826.188_gde4-we.jpg 600 600 N N Y 15084 2390 product 11508 M 0 11508
0 4_3tr6-yu.jpg 600 600 N N Y 15099 2395 product 11521 M 0 11521
0 mediaxiaomi-wireless-mouse-3-black-1.webp 777 777 N N Y 15111 2397 product 11523 M 0 11523
0 wireless-mouse-xiaomi-3-1200dpi-bt-wi-fi-blue-bhr8914gl-1734018320275.jpg 800 800 N N Y 15121 2398 product 11526 M 0 11526
0 mouse_500x500.webp 500 500 N N Y 15122 2396 product 11527 M 0 11527
0 Delivard_Product_Images_-_2025-07-30T092523.003.jpg 600 600 N N Y 18541 3452 product 14039 M 0 14039
0 Delivard_Product_Images_-_2025-07-30T091850.983.jpg 600 600 N N Y 18543 3455 product 14036 M 0 14036
0 Delivard_Product_Images_-_2025-07-30T091938.383.jpg 600 600 N N Y 18545 3454 product 14037 M 0 14037
0 Delivard_Product_Images_-_2025-07-30T092014.351.jpg 600 600 N N Y 18550 3456 product 14038 M 0 14038
0 Delivard_Product_Images_-_2025-07-30T095014.044.jpg 600 600 N N Y 18559 3458 product 14045 M 0 14045
0 Delivard_Product_Images_-_2025-07-30T095051.791.jpg 600 600 N N Y 18563 3459 product 14046 M 0 14046
0 Delivard_Product_Images_-_2025-07-30T095139.680.jpg 600 600 N N Y 18567 3460 product 14047 M 0 14047
0 Delivard_Product_Images_-_2025-07-30T095205.927.jpg 600 600 N N Y 18571 3461 product 14048 M 0 14048
0 Untitled_design_-_2025-08-17T222228.079.jpg 600 600 N N Y 22004 4294 product 16727 M 0 16727
0 Untitled_design_-_2025-08-17T221954.249.jpg 600 600 N N Y 22012 4295 product 16730 M 0 16730
0 30_-_2025-09-23T004215.011.jpg 600 600 N N Y 26158 5624 product 19911 M 0 19911
0 MXK83AB.jpeg 1144 1144 N N Y 26160 5625 product 19912 M 0 19912