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 (
    11279, 11280, 11281, 10312, 10315, 10317, 
    10407, 10406, 10436, 10437, 10485, 
    10486, 11155, 11571, 11452, 11456, 
    11457
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00197

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "42.96"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "18.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": 18,
            "rows_produced_per_join": 18,
            "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 (11279,11280,11281,10312,10315,10317,10407,10406,10436,10437,10485,10486,11155,11571,11452,11456,11457)))",
            "cost_info": {
              "read_cost": "10.56",
              "eval_cost": "1.80",
              "prefix_cost": "12.36",
              "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": 18,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "4.50",
              "eval_cost": "1.80",
              "prefix_cost": "18.66",
              "data_read_per_join": "13K"
            },
            "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": 18,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "4.50",
              "eval_cost": "1.80",
              "prefix_cost": "24.96",
              "data_read_per_join": "10K"
            },
            "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__89_.jpg 600 600 N N N 41095 10312 product 31727 M 0 31727
0 Delivard_Product_Images__89_.jpg 600 600 N N N 41110 10315 product 31727 M 0 31727
0 Delivard_Product_Images__89_.jpg 600 600 N N N 41118 10317 product 31727 M 0 31727
0 193_8r88-mn.jpg 600 600 N N N 41363 10406 product 31934 M 0 31934
0 6805fe4e02e0aa0021c8107a797921-47155.jpg 600 600 N N N 41365 10407 product 31935 M 0 31935
0 200_1q46-xu.jpg 600 600 N N N 41426 10436 product 31989 M 0 31989
0 201_29bc-4j.jpg 600 600 N N N 41428 10437 product 31990 M 0 31990
0 218_h8uw-9i.jpg 600 600 N N N 41528 10485 product 32081 M 0 32081
0 219_rfa8-91.jpg 600 600 N N N 41530 10486 product 32082 M 0 32082
0 126_aib7-ps.jpg 600 600 N N N 44191 11155 product 34352 M 0 34352
0 cc_-_2026-01-24T195422.375.jpg 600 600 N N N 44700 11279 product 34768 M 0 34768
0 cc_-_2026-01-29T001354.379.jpg 600 600 N N N 45828 11452 product 35546 M 0 35546
0 66c486eac114f20036ed340d01763ewd-44834.jpg 600 600 N N N 46648 11571 product 36097 M 0 36097
0 cc_-_2026-01-24T194100.842.jpg 600 600 N N N 44706 11280 product 34770 M 2 34770
0 cc_-_2026-01-29T003137.842.jpg 600 600 N N N 45851 11456 product 35548 M 3 35548
0 cc_-_2026-01-24T201408.365.jpg 600 600 N N N 44713 11281 product 34772 M 5 34772
0 cc_-_2026-01-29T003318.436.jpg 600 600 N N N 45856 11457 product 35550 M 5 35550