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 (
    2880, 2881, 3014, 3015, 4476, 4475, 3404, 
    3405, 3366, 3367, 3160, 3161, 3023, 
    3024, 4888, 4891, 4892, 3099, 3100, 
    2800, 2801, 3423, 3422, 2739, 2740, 
    2741, 2860, 2861
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00203

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "67.21"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "28.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": 28,
            "rows_produced_per_join": 28,
            "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 (2880,2881,3014,3015,4476,4475,3404,3405,3366,3367,3160,3161,3023,3024,4888,4891,4892,3099,3100,2800,2801,3423,3422,2739,2740,2741,2860,2861)))",
            "cost_info": {
              "read_cost": "16.81",
              "eval_cost": "2.80",
              "prefix_cost": "19.61",
              "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": 28,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "7.00",
              "eval_cost": "2.80",
              "prefix_cost": "29.41",
              "data_read_per_join": "21K"
            },
            "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": 28,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "7.00",
              "eval_cost": "2.80",
              "prefix_cost": "39.21",
              "data_read_per_join": "16K"
            },
            "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__18_.jpg 600 600 N N Y 16380 2739 product 12323 M 0 12323
0 eF1iGCjcudOKJxzrZc4LjKpjQohdDJcjC0GZGem6.jpg 800 800 N N Y 16384 2741 product 12324 M 0 12324
0 vcx9eWF7ElrlVsg0bhL8JHsCjqOV2pKApvIUGmWO.jpg 800 800 N N Y 16385 2740 product 12325 M 0 12325
0 Delivard_Product_Images__36_.jpg 600 600 N N Y 16647 2800 product 12498 M 0 12498
0 JW1YwbEQh2D6cJ6aCDDYnWcC8PqqseCqHnZt9DKM.jpg 800 800 N N Y 16649 2801 product 12499 M 0 12499
0 Delivard_Product_Images__59_.jpg 600 600 N N Y 16799 2880 product 12546 M 0 12546
0 O9TwZOXlHTzhngmr4wKcg9dRS4HxcMhMbcOjzyT0.jpg 800 800 N N Y 16801 2881 product 12547 M 0 12547
0 Delivard_gl5o-wq.jpg 600 600 N N Y 17003 3014 product 12716 M 0 12716
0 Delivard_bw1y-bz.jpg 600 600 N N Y 17015 3015 product 12725 M 0 12725
0 Delivard2_evvl-aj.jpg 600 600 N N Y 17063 3023 product 12761 M 0 12761
0 Delivard_2vh3-lu.jpg 600 600 N N Y 17069 3024 product 12764 M 0 12764
0 Untitled_design__24_.jpg 600 600 N N Y 17370 2860 product 12975 M 0 12975
0 Untitled_design__25__pyx3-a2.jpg 600 600 N N Y 17372 2861 product 12977 M 0 12977
0 Untitled_design_-_2025-07-20T110831.275.jpg 600 600 N N Y 17615 3099 product 13210 M 0 13210
0 Untitled_design_-_2025-07-20T110846.950_xm3y-u2.jpg 600 600 N N Y 17617 3100 product 13212 M 0 13212
0 Untitled_design__24__931e-gt.jpg 600 600 N N Y 18214 3366 product 13760 M 0 13760
0 q2sMwYkSlzwjusR0mOzIQZV29KYw8DCSP6CaoLH1.jpg 820 820 N N Y 18216 3367 product 13761 M 0 13761
0 Untitled_design__37__o6yd-al.jpg 600 600 N N Y 18338 3404 product 13866 M 0 13866
0 9421467809054.png 1000 1000 N N Y 18340 3405 product 13867 M 0 13867
0 77XhA1mvMVAfSrFufD2lV67gIOxyDOIor7fhugWX_0q53-7l.jpg 800 800 N N Y 18415 3422 product 13929 M 0 13929
0 Delivard_Product_Images__5__1bbx-4g.jpg 600 600 N N Y 18417 3423 product 13928 M 0 13928
0 Untitled_design_-_2025-08-04T143941.305.jpg 600 600 N N Y 19312 3160 product 14719 M 0 14719
0 Untitled_design_-_2025-08-04T144030.207_khbs-27.jpg 600 600 N N Y 19314 3161 product 14721 M 0 14721
0 Untitled_design_-_2025-08-19T165000.737.jpg 600 600 N N Y 22719 4475 product 17011 M 0 17011
0 Untitled_design_-_2025-08-19T165034.281.jpg 600 600 N N Y 22730 4476 product 17015 M 0 17015
0 Delivard_Template_k9pl-jx.jpg 900 900 N N Y 24161 4891 product 18185 M 0 18185
0 Delivard_Template_7njo-vy.jpg 900 900 N N Y 24167 4892 product 18193 M 1 18193
0 Delivard_Template_ounr-h2.jpg 900 900 N N Y 24169 4888 product 18195 M 2 18195