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 (
    4975, 4974, 5900, 5899, 5934, 5935, 4192, 
    4193, 4998, 4995, 2393, 2394, 3464, 
    3467, 3826, 4101
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00167

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "38.41"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "16.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": 16,
            "rows_produced_per_join": 16,
            "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 (4975,4974,5900,5899,5934,5935,4192,4193,4998,4995,2393,2394,3464,3467,3826,4101)))",
            "cost_info": {
              "read_cost": "9.61",
              "eval_cost": "1.60",
              "prefix_cost": "11.21",
              "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": 16,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "4.00",
              "eval_cost": "1.60",
              "prefix_cost": "16.81",
              "data_read_per_join": "12K"
            },
            "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": 16,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "4.00",
              "eval_cost": "1.60",
              "prefix_cost": "22.41",
              "data_read_per_join": "9K"
            },
            "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 3.jpg 600 600 N N Y 15095 2393 product 11519 M 0 11519
0 BHR8915GL_wr_05.jpg 1000 1000 N N Y 15097 2394 product 11520 M 0 11520
0 Delivard_Product_Images_-_2025-07-30T110802.835.jpg 600 600 N N Y 18595 3464 product 14069 M 0 14069
0 Delivard2_rv7x-wv.jpg 900 900 N N Y 19892 3826 product 15135 M 0 15135
0 Untitled_design_-_2025-08-15T131945.288.jpg 600 600 N N Y 21514 4192 product 16377 M 0 16377
0 Untitled_design_-_2025-08-15T132028.755.jpg 600 600 N N Y 21522 4193 product 16380 M 0 16380
0 Delivard_Template_i374-0t.jpg 900 900 N N Y 24538 4995 product 18423 M 0 18423
0 30_-_2025-09-26T154231.343.jpg 600 600 N N Y 27255 5899 product 20648 M 0 20648
0 MXK63_AV1.jpeg 1144 1144 N N Y 27257 5900 product 20649 M 0 20649
0 30_-_2025-09-27T205758.854.jpg 600 600 N N Y 27429 5934 product 20814 M 0 20814
0 MXKA3.jpeg 1144 1144 N N Y 27431 5935 product 20815 M 0 20815
0 Delivard_Template_6ek2-nw.jpg 900 900 N N Y 24477 4975 product 18381 M 1 18381
0 Delivard_Template_q1zu-x9.jpg 900 900 N N Y 24479 4974 product 18383 M 1 18383
0 Delivard_Product_Images_-_2025-07-30T113519.763.jpg 600 600 N N Y 18601 3467 product 14072 M 3 14072
0 MP_vq2p-a4_trsx-og.jpg 900 900 N N Y 20817 4101 product 15861 M 4 15861
0 Delivard_Template_7d7d-4c.jpg 900 900 N N Y 24547 4998 product 18428 M 4 18428