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 (
    5774, 5975, 4466, 4467, 4468, 11496, 
    11497, 11498, 3069, 3070, 3071, 3072, 
    3060, 3061, 3062
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00178

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "36.01"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "15.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": 15,
            "rows_produced_per_join": 15,
            "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 (5774,5975,4466,4467,4468,11496,11497,11498,3069,3070,3071,3072,3060,3061,3062)))",
            "cost_info": {
              "read_cost": "9.01",
              "eval_cost": "1.50",
              "prefix_cost": "10.51",
              "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": 15,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "3.75",
              "eval_cost": "1.50",
              "prefix_cost": "15.76",
              "data_read_per_join": "11K"
            },
            "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": 15,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "3.75",
              "eval_cost": "1.50",
              "prefix_cost": "21.01",
              "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 0_p6xd-3g.jpg 600 600 N N Y 17221 3069 product 12865 M 0 12865
0 Delivard2_9rp9-pb.jpg 600 600 N N Y 17233 3070 product 12868 M 0 12868
0 Delivard1_02ie-ld.jpg 600 600 N N Y 17236 3071 product 12871 M 0 12871
0 Delivard_4sfb-gq.jpg 600 600 N N Y 17239 3072 product 12874 M 0 12874
0 Untitled_design_-_2025-07-28T072936.478.jpg 600 600 N N Y 18424 3060 product 13936 M 0 13936
0 Untitled_design_-_2025-07-28T073239.766_4ugw-g2.jpg 600 600 N N Y 18427 3061 product 13939 M 0 13939
0 Untitled_design_-_2025-07-28T073137.729_4fsm-1q.jpg 600 600 N N Y 18430 3062 product 13942 M 0 13942
0 22_gb5z-7z.jpg 600 600 N N Y 22666 4466 product 16982 M 0 16982
0 sd620_p_2000x20000_blue_05_sed9-0k.png 1000 1000 N N Y 22686 4467 product 16987 M 0 16987
0 22_3_6a0j-yk.jpg 600 600 N N Y 22693 4468 product 16990 M 0 16990
0 Delivard_Template_2r97-t8.jpg 900 900 N N Y 26757 5774 product 20195 M 0 20195
0 image_2026-01-29_214703993.png 600 600 N N N 46142 11496 product 35758 M 0 35758
0 Delivard_Template_k2cs-d2_dufa-lm.jpg 900 900 N N Y 27683 5975 product 21021 M 3 21021
0 image_2026-01-29_215016119.png 600 600 N N N 46152 11497 product 35763 M 5 35763
0 image_2026-01-29_215212605.png 600 600 N N N 46162 11498 product 35768 M 5 35768