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 (
    13919, 13920, 13902, 13903, 13913, 13914, 
    13915, 13909, 13910, 13911, 13924, 
    13925, 13921, 13922, 13923, 13917, 
    13918, 13926, 13927, 13906, 13907, 
    13936, 13937, 13933, 13934, 13935
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00054

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.150596654,
    "nested_loop": [
      {
        "read_sorted_file": {
          "filesort": {
            "sort_key": "cscart_images_links.position, cscart_images_links.pair_id",
            "table": {
              "table_name": "cscart_images_links",
              "access_type": "range",
              "possible_keys": ["object_id"],
              "key": "object_id",
              "key_length": "81",
              "used_key_parts": ["object_id", "object_type", "type"],
              "loops": 1,
              "rows": 26,
              "cost": 0.07105288,
              "filtered": 100,
              "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'M' and cscart_images_links.object_id in (13919,13920,13902,13903,13913,13914,13915,13909,13910,13911,13924,13925,13921,13922,13923,13917,13918,13926,13927,13906,13907,13936,13937,13933,13934,13935)"
            }
          }
        }
      },
      {
        "table": {
          "table_name": "cscart_images",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "4",
          "used_key_parts": ["image_id"],
          "ref": ["u508912950_dev_2025.cscart_images_links.detailed_id"],
          "loops": 26,
          "rows": 1,
          "cost": 0.03308584,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "cscart_common_descriptions",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "108",
          "used_key_parts": ["object_id", "lang_code", "object_holder"],
          "ref": ["u508912950_dev_2025.cscart_images.image_id", "const", "const"],
          "loops": 26,
          "rows": 1,
          "cost": 0.02980904,
          "filtered": 100,
          "attached_condition": "trigcond(cscart_common_descriptions.object_holder = 'images' and cscart_common_descriptions.lang_code = 'en' and trigcond(cscart_images.image_id is not null))"
        }
      }
    ]
  }
}

Result

image_id image_path image_x image_y is_high_res transparent pair_id object_id object_type detailed_id type position alt images_image_id
0 aden_dipliner_black_45ml.jpg 1000 1000 N N 21492 13902 product 23277 M 0 23277
0 aden_dipliner_brown_45ml.jpg 1000 1000 N N 21493 13903 product 23278 M 0 23278
0 me-racle-liquid-eyeliner-01-black.jpg 1000 1000 N N 21497 13906 product 23282 M 0 23282
0 me-racle-liquid-eyeliner-02-brown.jpg 1000 1000 N N 21498 13907 product 23283 M 0 23283
0 aden_eyeliner_pencil_04_brown_114-gr-.jpg 1000 1000 N N 21500 13909 product 23285 M 0 23285
0 thumb_628-ezgif.com-webp-to-jpg-converter.jpg 700 700 N N 21501 13910 product 23286 M 0 23286
0 aden_eyeliner_pencil_03_granite_114-gr-.jpg 1000 1000 N N 21502 13911 product 23287 M 0 23287
0 aden_eyeliner_pencil_61_stay_24_hours_pro_longwear_1.2-gr_bx1s-cj.jpg 1000 1000 N N 21504 13913 product 23289 M 0 23289
0 861-ezgif.com-webp-to-jpg-converter.jpg 1400 1400 N N 21505 13914 product 23290 M 0 23290
0 aden_eyeliner_pencil_67_smoky_eyes_velvet_grey_120-gr-.jpg 1000 1000 N N 21506 13915 product 23291 M 0 23291
0 thumb_965-ezgif.com-webp-to-jpg-converter.jpg 700 700 N N 21508 13917 product 23293 M 0 23293
0 thumb_966-ezgif.com-webp-to-jpg-converter.jpg 700 700 N N 21509 13918 product 23294 M 0 23294
0 color-me-matic-eyeshaper-black.jpg-scaled.jpg 2560 2560 N N 21510 13919 product 23295 M 0 23295
0 color-me-matic-eyeshaper-brown-scaled.jpg 2560 2560 N N 21511 13920 product 23296 M 0 23296
0 aden_eyeshadow_palette_01_black_blue.jpg 1000 1000 N N 21512 13921 product 23297 M 0 23297
0 aden_eyeshadow_palette_03_matte_nude.jpg 1000 1000 N N 21513 13922 product 23298 M 0 23298
0 aden_eyeshadow_palette_04_pearl_nude.jpg 1000 1000 N N 21514 13923 product 23299 M 0 23299
0 eyeshadow_palette_16_shades_nude_2.jpg 1000 1000 N N 21515 13924 product 23300 M 0 23300
0 eyeshadow_palette_16_shades_smoky_2.jpg 1000 1000 N N 21516 13925 product 23301 M 0 23301
0 aden_matte_eyeshadow_powder_01_black.jpg 1000 1000 N N 21517 13926 product 23302 M 0 23302
0 aden_matte_eyeshadow_powder_06_white.jpg 1000 1000 N N 21518 13927 product 23303 M 0 23303
0 shine-szemhejpuder-duo-02.jpg 1001 1000 N N 21530 13933 product 23315 M 0 23315
0 1-1000x1000-1.jpg 1000 1000 N N 21531 13934 product 23316 M 0 23316
0 shine-szemhejpuder-duo-04.jpg 1001 1000 N N 21532 13935 product 23317 M 0 23317
0 1562-ezgif.com-webp-to-jpg-converter.jpg 1400 1400 N N 21533 13936 product 23318 M 0 23318
0 1565-ezgif.com-webp-to-jpg-converter.jpg 1400 1400 N N 21534 13937 product 23319 M 0 23319