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 (
    10314, 10319, 10320, 10321, 10313, 10316, 
    10318, 10322, 11223, 11222, 11319, 
    11320
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00249

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "28.81"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "12.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": 12,
            "rows_produced_per_join": 12,
            "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 (10314,10319,10320,10321,10313,10316,10318,10322,11223,11222,11319,11320)))",
            "cost_info": {
              "read_cost": "7.21",
              "eval_cost": "1.20",
              "prefix_cost": "8.41",
              "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": 12,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "3.00",
              "eval_cost": "1.20",
              "prefix_cost": "12.61",
              "data_read_per_join": "9K"
            },
            "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": 12,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "3.00",
              "eval_cost": "1.20",
              "prefix_cost": "16.81",
              "data_read_per_join": "7K"
            },
            "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__93_.jpg 600 600 N N N 41099 10313 product 31731 M 0 31731
0 Delivard_Product_Images__97_.jpg 600 600 N N N 41103 10314 product 31735 M 0 31735
0 Delivard_Product_Images__93_.jpg 600 600 N N N 41114 10316 product 31731 M 0 31731
0 Delivard_Product_Images__93_.jpg 600 600 N N N 41122 10318 product 31731 M 0 31731
0 Delivard_Product_Images__97_.jpg 600 600 N N N 41129 10319 product 31735 M 0 31735
0 Delivard_Product_Images__97_.jpg 600 600 N N N 41130 10320 product 31735 M 0 31735
0 Delivard_Product_Images__97_.jpg 600 600 N N N 41134 10321 product 31735 M 0 31735
0 Delivard_Product_Images__93_.jpg 600 600 N N N 41138 10322 product 31731 M 0 31731
0 cc_-_2026-01-24T002240.839.jpg 600 600 N N N 44396 11222 product 34536 M 0 34536
0 cc_-_2026-01-24T002429.201.jpg 600 600 N N N 44404 11223 product 34539 M 0 34539
0 170_t3tu-pt.jpg 600 600 N N N 44916 11319 product 34930 M 0 34930
0 171_da8r-0b.jpg 600 600 N N N 44918 11320 product 34931 M 0 34931