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 (
    7741, 7740, 10140, 10142, 10144, 10141, 
    10224, 10223, 10222, 10146, 10147, 
    10276, 10277, 10278, 10228, 10229, 
    10230, 10024, 10023, 10027, 10026, 
    10233, 10234, 10227, 10226, 10294, 
    10295, 10022, 10028
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00192

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "69.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "29.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": 29,
            "rows_produced_per_join": 29,
            "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 (7741,7740,10140,10142,10144,10141,10224,10223,10222,10146,10147,10276,10277,10278,10228,10229,10230,10024,10023,10027,10026,10233,10234,10227,10226,10294,10295,10022,10028)))",
            "cost_info": {
              "read_cost": "17.41",
              "eval_cost": "2.90",
              "prefix_cost": "20.31",
              "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": 29,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "7.25",
              "eval_cost": "2.90",
              "prefix_cost": "30.46",
              "data_read_per_join": "22K"
            },
            "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": 29,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "7.25",
              "eval_cost": "2.90",
              "prefix_cost": "40.61",
              "data_read_per_join": "17K"
            },
            "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 5_tqct-lx.jpg 600 600 N N Y 33715 7741 product 25406 M 0 25406
0 cc_-_2025-12-23T180231.961.jpg 600 600 N N N 40166 10022 product 31088 M 0 31088
0 121_my99-7i.jpg 600 600 N N N 40169 10023 product 31091 M 0 31091
0 cabezal_xiaomi_electric_toothbrush_t302_blanco_01_l.jpg 800 800 N N N 40171 10024 product 31092 M 0 31092
0 123_gp0x-ev.jpg 600 600 N N N 40175 10026 product 31095 M 0 31095
0 124_oo0z-sn.jpg 600 600 N N N 40179 10027 product 31096 M 0 31096
0 cc_-_2025-12-23T182306.450.jpg 600 600 N N N 40182 10028 product 31097 M 0 31097
0 Delivard_Product_Images_-_2025-12-24T160107.983.jpg 600 600 N N N 40595 10140 product 31357 M 0 31357
0 Delivard_Product_Images_-_2025-12-24T160107.983.jpg 600 600 N N N 40602 10141 product 31357 M 0 31357
0 Delivard_Product_Images_-_2025-12-24T160203.691.jpg 600 600 N N N 40608 10142 product 31358 M 0 31358
0 cc_-_2025-12-24T163421.941.jpg 600 600 N N N 40617 10146 product 31359 M 0 31359
0 cc_-_2025-12-24T163416.816.jpg 600 600 N N N 40622 10147 product 31361 M 0 31361
0 Untitled_Image__19__n1br-eo.jpg 900 900 N N N 40804 10222 product 31506 M 0 31506
0 Untitled_design__4_.jpg 900 900 N N N 40817 10226 product 31515 M 0 31515
0 Untitled_Image__24__tel5-m2.jpg 900 900 N N N 40821 10228 product 31517 M 0 31517
0 Untitled_design__45_.jpg 900 900 N N N 40947 10276 product 31634 M 0 31634
0 image_2025-12-27_030333234.png 800 800 N N N 40956 10277 product 31637 M 0 31637
0 183_rn0r-8r.jpg 600 600 N N N 41029 10294 product 31683 M 0 31683
0 184_euax-qx.jpg 600 600 N N N 41031 10295 product 31684 M 0 31684
0 6_wglw-5h.jpg 600 600 N N Y 33713 7740 product 25407 M 1 25407
0 Delivard_Product_Images_-_2025-12-24T160242.356.jpg 600 600 N N N 40600 10144 product 31356 M 1 31356
0 Untitled_Image__28__shvn-xi.jpg 900 900 N N N 40842 10233 product 31532 M 1 31532
0 Untitled_Image__29__6m8x-ue.jpg 900 900 N N N 40849 10234 product 31536 M 1 31536
0 image_2025-12-26_034906600.png 600 600 N N N 40830 10227 product 31520 M 2 31520
0 Untitled_Image__21__wqot-5w.jpg 900 900 N N N 40810 10224 product 31508 M 3 31508
0 Untitled_Image__22__21n8-bp.jpg 900 900 N N N 40812 10223 product 31510 M 3 31510
0 Untitled_Image__25__qzaf-6d.jpg 900 900 N N N 40832 10229 product 31522 M 4 31522
0 Untitled_Image__26__fpis-9q.jpg 900 900 N N N 40835 10230 product 31525 M 4 31525
0 image_2025-12-27_030645489.png 800 800 N N N 40959 10278 product 31640 M 4 31640