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 (
    6036, 6037, 6038, 6039, 6040, 3220, 3221, 
    6178, 6179, 6180, 6181, 6182, 6183, 
    6184
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00134

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "33.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "14.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": 14,
            "rows_produced_per_join": 14,
            "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 (6036,6037,6038,6039,6040,3220,3221,6178,6179,6180,6181,6182,6183,6184)))",
            "cost_info": {
              "read_cost": "8.41",
              "eval_cost": "1.40",
              "prefix_cost": "9.81",
              "data_read_per_join": "1K"
            },
            "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": 14,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "3.50",
              "eval_cost": "1.40",
              "prefix_cost": "14.71",
              "data_read_per_join": "10K"
            },
            "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": 14,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "3.50",
              "eval_cost": "1.40",
              "prefix_cost": "19.61",
              "data_read_per_join": "8K"
            },
            "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__64_.jpg 600 600 N N Y 17736 3220 product 13323 M 0 13323
0 593d40331582eea1_CAB015-BLK_100W_USB-CtoUSB-C-Braided_Angled_WEB.jpg 700 700 N N Y 20922 3221 product 15928 M 0 15928
0 30_-_2025-10-01T201901.531_erhb-q7.jpg 600 600 N N Y 28230 6036 product 21246 M 0 21246
0 30_-_2025-10-01T202845.896_7rth-ng.jpg 600 600 N N Y 28237 6039 product 21247 M 0 21247
0 MYJD3_wkr6-r2.jpeg 1144 1144 N N Y 28246 6040 product 21249 M 0 21249
0 apple_watch_series_10_green_grey_nike_sport_loop_cropped_zr2s-ol.jpg 700 700 N N Y 28247 6037 product 21248 M 0 21248
0 30_-_2025-10-01T204249.058.jpg 600 600 N N Y 28257 6038 product 21253 M 0 21253
0 30_-_2025-09-27T224110.439_3g5a-54.jpg 600 600 N N Y 29121 6178 product 21450 M 0 21450
0 MYL43ref_gm9m-sy.jpeg 1144 1144 N N Y 29133 6184 product 21451 M 0 21451
0 MYL63ref_po3d-2z.jpeg 1144 1144 N N Y 29134 6179 product 21452 M 0 21452
0 MYL83ref_5e4c-b2.jpeg 1144 1144 N N Y 29144 6183 product 21453 M 0 21453
0 MYLA3ref_j3u0-yo.jpeg 4000 4000 N N Y 29147 6180 product 21454 M 0 21454
0 MYLD3ref_u6tt-v3.jpeg 1144 1144 N N Y 29154 6181 product 21455 M 0 21455
0 MYLF3ref_ebhj-7d.jpeg 1144 1144 N N Y 29161 6182 product 21456 M 0 21456