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 (
    4245, 4257, 6019, 6020, 6021, 6022, 6023, 
    5157, 5158, 5129, 5126, 5135, 5133, 
    2837, 2838, 2839
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00213

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 (4245,4257,6019,6020,6021,6022,6023,5157,5158,5129,5126,5135,5133,2837,2838,2839)))",
            "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 Delivard_Product_Images__49_.jpg 600 600 N N Y 16669 2837 product 12514 M 0 12514
0 JBL_XTREME_4_HERO_BLACK_47136_X2__1_.png 680 680 N N Y 16672 2838 product 12515 M 0 12515
0 ixedqIgiRyAsKGvGmqxbooKdNPgGZ5MBx2ul7uBJ.jpg 800 800 N N Y 16675 2839 product 12516 M 0 12516
0 Untitled_design_-_2025-08-17T140322.345.jpg 600 600 N N Y 21821 4245 product 16622 M 0 16622
0 Untitled_design_-_2025-08-17T144839.212.jpg 600 600 N N Y 21879 4257 product 16633 M 0 16633
0 cc_-_2025-10-01T111650.149.jpg 600 600 N N Y 28112 6019 product 21218 M 0 21218
0 cc_-_2025-10-01T111714.903.jpg 600 600 N N Y 28126 6020 product 21220 M 0 21220
0 cc_-_2025-10-01T111642.994.jpg 600 600 N N Y 28135 6021 product 21222 M 0 21222
0 cc_-_2025-10-01T111634.929.jpg 600 600 N N Y 28144 6022 product 21224 M 0 21224
0 cc_-_2025-10-01T111659.993.jpg 600 600 N N Y 28153 6023 product 21226 M 0 21226
0 Delivard_Template_d8ur-xt.jpg 900 900 N N Y 24930 5126 product 18789 M 2 18789
0 Delivard_Template_21we-ti.jpg 900 900 N N Y 25045 5158 product 18880 M 4 18880
0 Delivard_Template_mqbb-xd.jpg 900 900 N N Y 24940 5129 product 18794 M 7 18794
0 Delivard_Template_3viy-1v.jpg 900 900 N N Y 24956 5133 product 18810 M 12 18810
0 Delivard_Template_g62e-35.jpg 900 900 N N Y 24966 5135 product 18815 M 17 18815
0 Delivard_Template_vur6-xy.jpg 900 900 N N Y 25037 5157 product 18876 M 18 18876