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 (
    3056, 3057, 3946, 4028, 4941, 4940, 4939, 
    4935, 4108, 4107, 3734, 6171, 6172, 
    6173, 6174, 6175, 6176, 6177, 6031, 
    6032, 6033, 6034, 6035
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00185

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "55.21"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "23.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": 23,
            "rows_produced_per_join": 23,
            "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 (3056,3057,3946,4028,4941,4940,4939,4935,4108,4107,3734,6171,6172,6173,6174,6175,6176,6177,6031,6032,6033,6034,6035)))",
            "cost_info": {
              "read_cost": "13.81",
              "eval_cost": "2.30",
              "prefix_cost": "16.11",
              "data_read_per_join": "2K"
            },
            "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": 23,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "5.75",
              "eval_cost": "2.30",
              "prefix_cost": "24.16",
              "data_read_per_join": "17K"
            },
            "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": 23,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "5.75",
              "eval_cost": "2.30",
              "prefix_cost": "32.21",
              "data_read_per_join": "13K"
            },
            "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 Untitled_design_-_2025-07-20T171453.856.jpg 600 600 N N Y 17868 3056 product 13441 M 0 13441
0 Untitled_design_-_2025-07-20T171523.708_l4dt-ch.jpg 600 600 N N Y 17870 3057 product 13443 M 0 13443
0 Delivard_2w9t-fq.jpg 900 900 N N Y 19605 3734 product 14961 M 0 14961
0 Delivard_ojfq-x8.jpg 900 900 N N Y 20296 3946 product 15444 M 0 15444
0 download_8tzt-pq.jpg 900 900 N N Y 20888 4108 product 15904 M 0 15904
0 download_b9dc-zv.jpg 900 900 N N Y 20896 4107 product 15912 M 0 15912
0 Delivard.jpg 900 900 N N Y 24313 4935 product 18292 M 0 18292
0 30_-_2025-10-01T201901.531.jpg 600 600 N N Y 28201 6031 product 21237 M 0 21237
0 MYJD3.jpeg 1144 1144 N N Y 28213 6035 product 21240 M 0 21240
0 apple_watch_series_10_green_grey_nike_sport_loop_cropped.jpg 700 700 N N Y 28214 6032 product 21239 M 0 21239
0 30_-_2025-10-01T202124.420.jpg 600 600 N N Y 28219 6033 product 21238 M 0 21238
0 30_-_2025-10-01T202845.896_2nsd-xw.jpg 600 600 N N Y 28227 6034 product 21243 M 0 21243
0 30_-_2025-09-27T224110.439_824p-sf.jpg 600 600 N N Y 29072 6171 product 21443 M 0 21443
0 MYL43ref_kbkx-8i.jpeg 1144 1144 N N Y 29084 6177 product 21444 M 0 21444
0 MYL63ref_j8rz-j1.jpeg 1144 1144 N N Y 29085 6172 product 21445 M 0 21445
0 MYL83ref_dyxq-vm.jpeg 1144 1144 N N Y 29095 6176 product 21446 M 0 21446
0 MYLA3ref_vwhj-n3.jpeg 4000 4000 N N Y 29098 6173 product 21447 M 0 21447
0 MYLD3ref_bruq-15.jpeg 1144 1144 N N Y 29105 6174 product 21448 M 0 21448
0 MYLF3ref_eezf-iy.jpeg 1144 1144 N N Y 29112 6175 product 21449 M 0 21449
0 Delivard_ggjv-w3.jpg 900 900 N N Y 24343 4940 product 18304 M 1 18304
0 Delivard_ayf6-91.jpg 900 900 N N Y 24344 4941 product 18305 M 1 18305
0 Delivard_i84n-1f.jpg 900 900 N N Y 24345 4939 product 18306 M 1 18306
0 Delivard_jyh5-bl_u4o0-ri.jpg 900 900 N N Y 20570 4028 product 15656 M 4 15656