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 (
    2300, 2584, 2582, 2302, 2301, 2640, 2291, 
    2641, 2647, 2646, 3429, 3428, 3427, 
    2643, 2644, 2642, 2649, 2650
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00175

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "43.21"
    },
    "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 (2300,2584,2582,2302,2301,2640,2291,2641,2647,2646,3429,3428,3427,2643,2644,2642,2649,2650)))",
            "cost_info": {
              "read_cost": "10.81",
              "eval_cost": "1.80",
              "prefix_cost": "12.61",
              "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.91",
              "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": "25.21",
              "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_-_2025-06-24T113038.719_1exa-wl.jpg 600 600 N N Y 14849 2300 product 11340 M 0 11340
0 Delivard_Product_Images_-_2025-06-24T113038.719_mxfp-5w.jpg 600 600 N N Y 14854 2301 product 11350 M 0 11350
0 Delivard_Product_Images_-_2025-06-24T113445.763_0x7k-cm.jpg 600 600 N N Y 14860 2302 product 11356 M 0 11356
0 Delivard_Product_Images_-_2025-06-24T113038.719_1exa-wl.jpg 600 600 N N Y 15660 2584 product 11340 M 0 11340
0 Delivard_Product_Images_-_2025-06-24T110613.847_yj0t-na.jpg 600 600 N N Y 15775 2291 product 11896 M 0 11896
0 Delivard_Product_Images_-_2025-06-24T103237.400_00hd-ap.jpg 600 600 N N Y 15796 2640 product 11311 M 0 11311
0 Delivard_Product_Images_-_2025-06-24T103237.400_00hd-ap.jpg 600 600 N N Y 15797 2641 product 11311 M 0 11311
0 1727307031_IMG_2344874_sc45-p5.webp 500 500 N N Y 15807 2642 product 11909 M 0 11909
0 1727307031_IMG_2344876_zyf6-fo.webp 500 500 N N Y 15825 2643 product 11906 M 0 11906
0 1727307031_IMG_2344876_zyf6-fo.webp 500 500 N N Y 15826 2644 product 11906 M 0 11906
0 Delivard_Product_Images_-_2025-07-08T093324.553_fo92-33.jpg 600 600 N N Y 15828 2646 product 11912 M 0 11912
0 Delivard_Product_Images_-_2025-07-08T093324.553_fo92-33.jpg 600 600 N N Y 15835 2647 product 11912 M 0 11912
0 Delivard_Product_Images_-_2025-07-09T114934.856.jpg 600 600 N N Y 15840 2649 product 11920 M 0 11920
0 Delivard_Product_Images_-_2025-07-09T114934.856.jpg 600 600 N N Y 15847 2650 product 11920 M 0 11920
0 Delivard_aopd-uc.jpg 975 975 N N Y 18444 3427 product 13956 M 0 13956
0 Delivard_rwg3-9p.jpg 975 975 N N Y 18450 3428 product 13958 M 0 13958
0 Delivard_08s7-cm.jpg 975 975 N N Y 18452 3429 product 13960 M 0 13960
0 Delivard_Product_Images_-_2025-06-24T113445.763_c83c-6e.jpg 600 600 N N Y 15665 2582 product 11836 M 6 11836