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 (
    6266, 6267, 6268, 6269, 6261, 6262, 6263, 
    6264, 6270, 6236, 6239, 6240, 6271, 
    6272
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00156

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 (6266,6267,6268,6269,6261,6262,6263,6264,6270,6236,6239,6240,6271,6272)))",
            "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 30_-_2025-10-06T214730.965.jpg 600 600 N N Y 29497 6236 product 21630 M 0 21630
0 605GM-Primary-CPATRTPOR-Tampo_v5i1-72.jpeg 800 1200 N N Y 29517 6240 product 21642 M 0 21642
0 30_-_2025-10-07T205017.894.jpg 600 600 N N Y 29590 6261 product 21715 M 0 21715
0 30_-_2025-10-07T204912.699.jpg 600 600 N N Y 29594 6262 product 21716 M 0 21716
0 30_-_2025-10-07T205101.110.jpg 600 600 N N Y 29598 6263 product 21717 M 0 21717
0 30_-_2025-10-07T204846.580.jpg 600 600 N N Y 29602 6264 product 21718 M 0 21718
0 30_-_2025-10-07T215439.737.jpg 600 600 N N Y 29613 6266 product 21726 M 0 21726
0 30_-_2025-10-07T215411.745.jpg 600 600 N N Y 29619 6269 product 21727 M 0 21727
0 30_-_2025-10-07T215506.468.jpg 600 600 N N Y 29620 6267 product 21728 M 0 21728
0 30_-_2025-10-07T215532.664.jpg 600 600 N N Y 29624 6268 product 21729 M 0 21729
0 30_-_2025-10-07T221122.143.jpg 600 600 N N Y 29636 6270 product 21730 M 0 21730
0 30_-_2025-10-07T221841.821.jpg 600 600 N N Y 29638 6271 product 21734 M 0 21734
0 759557-01.jpeg 1152 1728 N N Y 29640 6272 product 21735 M 0 21735
0 30_-_2025-10-06T214628.668_fse2-11.jpg 600 600 N N Y 29521 6239 product 21646 M 4 21646