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 (
    4117, 4116, 4115, 5703, 5704, 5705, 1284, 
    1477, 1475, 8504, 1528, 8505, 8503, 
    3826, 4101, 3604, 3603
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00201

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "40.81"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "17.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": 17,
            "rows_produced_per_join": 17,
            "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 (4117,4116,4115,5703,5704,5705,1284,1477,1475,8504,1528,8505,8503,3826,4101,3604,3603)))",
            "cost_info": {
              "read_cost": "10.21",
              "eval_cost": "1.70",
              "prefix_cost": "11.91",
              "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": 17,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "4.25",
              "eval_cost": "1.70",
              "prefix_cost": "17.86",
              "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": 17,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "4.25",
              "eval_cost": "1.70",
              "prefix_cost": "23.81",
              "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 Silver_8pzk-4i.jpg 600 600 N N Y 11227 1284 product 10091 M 0 10091
0 Black_g05v-0t.jpg 600 600 N N Y 12035 1475 product 10092 M 0 10092
0 Silver_8pzk-4i.jpg 600 600 N N Y 12040 1477 product 10091 M 0 10091
0 1_x4br-7v.jpg 600 600 N N Y 12213 1528 product 10262 M 0 10262
0 Untitled_design_-_2025-08-03T160839.840.jpg 600 600 N N Y 19136 3603 product 14579 M 0 14579
0 Untitled_design_-_2025-08-03T160918.185.jpg 600 600 N N Y 19138 3604 product 14580 M 0 14580
0 Delivard2_rv7x-wv.jpg 900 900 N N Y 19892 3826 product 15135 M 0 15135
0 a.jpg 600 600 N N Y 21000 4115 product 16006 M 0 16006
0 b.jpg 600 600 N N Y 21034 4116 product 16030 M 0 16030
0 hd330_r_f.png 2000 2000 N N Y 21051 4117 product 16047 M 0 16047
0 30_-_2025-09-23T234710.666.jpg 600 600 N N Y 26317 5703 product 20007 M 0 20007
0 MWK23.jpeg 1144 1144 N N Y 26320 5704 product 20008 M 0 20008
0 MWK33_cjs8-gk.jpeg 1144 1144 N N Y 26323 5705 product 20009 M 0 20009
0 1_x4br-7v.jpg 600 600 N N Y 36047 8503 product 10262 M 0 10262
0 1_x4br-7v.jpg 600 600 N N Y 36048 8504 product 10262 M 0 10262
0 1_x4br-7v.jpg 600 600 N N Y 36049 8505 product 10262 M 0 10262
0 MP_vq2p-a4_trsx-og.jpg 900 900 N N Y 20817 4101 product 15861 M 4 15861