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 (
    13963, 13964, 13965, 13966, 13967, 13968, 
    13971, 13972, 13973, 13969, 13970, 
    13951, 13952, 13953, 13954, 13955, 
    13956, 13957, 13958, 13959, 13960, 
    13961, 13962, 13974, 13975, 13976, 
    13977, 13978, 13979, 13980, 13981, 
    13982, 13983, 13984, 13985, 13986, 
    13987, 13988, 13989, 13990, 13991, 
    13992, 13993, 13994, 13995, 13996, 
    13997, 14008, 14009, 14010, 14005, 
    14006, 14007, 13998, 13999, 14000, 
    14001, 14002, 14003, 14004, 14011, 
    14012, 14013, 14014, 14015, 14016, 
    14017, 14018
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00120

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.329319652,
    "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": 68,
              "cost": 0.1474996,
              "filtered": 100,
              "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'M' and cscart_images_links.object_id in (13963,13964,13965,13966,13967,13968,13971,13972,13973,13969,13970,13951,13952,13953,13954,13955,13956,13957,13958,13959,13960,13961,13962,13974,13975,13976,13977,13978,13979,13980,13981,13982,13983,13984,13985,13986,13987,13988,13989,13990,13991,13992,13993,13994,13995,13996,13997,14008,14009,14010,14005,14006,14007,13998,13999,14000,14001,14002,14003,14004,14011,14012,14013,14014,14015,14016,14017,14018)"
            }
          }
        }
      },
      {
        "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": 68,
          "rows": 1,
          "cost": 0.07065232,
          "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": 68,
          "rows": 1,
          "cost": 0.06737552,
          "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_lipliner_pencil_40_brink_pink_1.14-gr.jpg 1000 1000 N N 21554 13951 product 23339 M 0 23339
0 aden_lipliner_pencil_carnal_21.jpg 1000 1000 N N 21555 13952 product 23340 M 0 23340
0 aden_lipliner_pencil_55_cerise_1.14-gr.jpg 1000 1000 N N 21556 13953 product 23341 M 0 23341
0 aden_lipliner_pencil_chinchilla_29.jpg 1000 1000 N N 21557 13954 product 23342 M 0 23342
0 aden_lipliner_pencil_corset_22.jpg 1000 1000 N N 21558 13955 product 23343 M 0 23343
0 aden_lipliner_pencil_47_cranberry_1.14-gr.jpg 1000 1000 N N 21559 13956 product 23344 M 0 23344
0 aden_lipliner_pencil_38_force_1.14-gr.jpg 1000 1000 N N 21560 13957 product 23345 M 0 23345
0 aden_lipliner_pencil_30_milk_chocolate_1.14-gr.jpg 1000 1000 N N 21561 13958 product 23346 M 0 23346
0 aden_lipliner_pencil_57_ottawa_garnet_1.14-gr.jpg 1000 1000 N N 21562 13959 product 23347 M 0 23347
0 aden_lipliner_pencil_36_shell_1.14-gr.jpg 1000 1000 N N 21563 13960 product 23348 M 0 23348
0 aden_lipliner_pencil_truffle_23.jpg 1000 1000 N N 21564 13961 product 23349 M 0 23349
0 aden_lipliner_pencil_34_russian_red_1.14-gr.jpg 1000 1000 N N 21565 13962 product 23350 M 0 23350
0 color-me-lip-contour-pencil-03-berry-1000-jpg.jpg 1000 1000 N N 21566 13963 product 23351 M 0 23351
0 color-me-lip-contour-pencil-06-blossom-1000x1000-1.jpg 1000 1000 N N 21567 13964 product 23352 M 0 23352
0 color-me-lip-contour-pencil-02-cinamon-1000-jpg.jpg 1000 1000 N N 21568 13965 product 23353 M 0 23353
0 color-me-lip-contour-pencil-05-coral-1000-jpg.jpg 1000 1000 N N 21569 13966 product 23354 M 0 23354
0 color-me-lip-contour-pencil-04-ginger-1000-jpg.jpg 1000 1000 N N 21570 13967 product 23355 M 0 23355
0 lip-contour-pencil-Nude-1000.jpg 1000 1000 N N 21571 13968 product 23356 M 0 23356
0 aden_hydrating_lipstick_18_bordeaux_35-gr-.jpg 1000 1000 N N 21572 13969 product 23357 M 0 23357
0 Sold-out-hydrating.jpg 1000 1000 N N 21573 13970 product 23358 M 0 23358
0 creamy-velvet-lipstick-04.jpg 1000 1000 N N 21574 13971 product 23359 M 0 23359
0 creamy-velvet-lipstick-08.jpg 1000 1000 N N 21575 13972 product 23360 M 0 23360
0 creamy-velvet-lipstick-01.jpg 1000 1000 N N 21576 13973 product 23361 M 0 23361
0 aden_liquid_lipstick_10_cerise_7-ml.jpg 1000 1000 N N 21577 13974 product 23362 M 0 23362
0 aden_liquid_lipstick_25_chinchilla_7_ml.jpg 1000 1000 N N 21578 13975 product 23363 M 0 23363
0 aden_liquid_lipstick_14_cranberry_7-ml.jpg 1000 1000 N N 21579 13976 product 23364 M 0 23364
0 aden_liquid_lipstick_15_extreme_nude_7-ml.jpg 1000 1000 N N 21580 13977 product 23365 M 0 23365
0 aden_liquid_lipstick_06_force_7-ml-.jpg 1000 1000 N N 21581 13978 product 23366 M 0 23366
0 aden_liquid_lipstick_34_mauve_7-ml.jpg 1000 1000 N N 21582 13979 product 23367 M 0 23367
0 1082-ezgif.com-webp-to-jpg-converter.jpg 1400 1866 N N 21583 13980 product 23368 M 0 23368
0 aden_liquid_lipstick_02_milk_chocolate_7-ml-.jpg 1000 1000 N N 21584 13981 product 23369 M 0 23369
0 aden_liquid_lipstick_07_nude_elegance_7_ml.jpg 1000 1000 N N 21585 13982 product 23370 M 0 23370
0 aden_liquid_lipstick_18_ottawa_garnet_7-ml-.jpg 1000 1000 N N 21586 13983 product 23371 M 0 23371
0 aden_liquid_lipstick_05_shell_7-ml-.jpg 1000 1000 N N 21587 13984 product 23372 M 0 23372
0 aden_liquid_lipstick_32_spice_7-ml.jpg 1000 1000 N N 21588 13985 product 23373 M 0 23373
0 aden_liquid_lipstick_33_sugar_chic_7-ml.jpg 1000 1000 N N 21589 13986 product 23374 M 0 23374
0 aden_liquid_lipstick_31_trap_7-ml.jpg 1000 1000 N N 21590 13987 product 23375 M 0 23375
0 aden_liquid_lipstick_30_truffle_7-ml.jpg 1000 1000 N N 21591 13988 product 23376 M 0 23376
0 liquid_lipstick___lipliner_set_10-1-scaled.jpg 2560 1920 N N 21592 13989 product 23377 M 0 23377
0 liquid_lipstick___lipliner_set_14-scaled.jpg 2560 1920 N N 21593 13990 product 23378 M 0 23378
0 liquid_lipstick___lipliner_set_15-scaled.jpg 2560 1920 N N 21594 13991 product 23379 M 0 23379
0 liquid_lipstick___lipliner_set_06-scaled.jpg 2560 1920 N N 21595 13992 product 23380 M 0 23380
0 1352-ezgif.com-webp-to-jpg-converter.jpg 1400 1400 N N 21596 13993 product 23381 M 0 23381
0 liquid_lipstick___lipliner_set_05-scaled.jpg 2560 1920 N N 21597 13994 product 23382 M 0 23382
0 1351-ezgif.com-webp-to-jpg-converter.jpg 1400 1400 N N 21598 13995 product 23383 M 0 23383
0 liquid_lipstick___lipliner_set_31-scaled.jpg 2560 1920 N N 21599 13996 product 23384 M 0 23384
0 liquid_lipstick___lipliner_set_09-scaled.jpg 2560 1920 N N 21600 13997 product 23385 M 0 23385
0 aden_effect_lipstick_satin_01.jpg 1002 1000 N N 21601 13998 product 23386 M 0 23386
0 aden_effect_lipstick_satin_02.jpg 1002 1000 N N 21602 13999 product 23387 M 0 23387
0 aden_effect_lipstick_satin_03.jpg 1002 1000 N N 21603 14000 product 23388 M 0 23388
0 aden_effect_lipstick_tattoo_07.jpg 1002 1000 N N 21604 14001 product 23389 M 0 23389
0 09-scaled.jpg 2560 2560 N N 21605 14002 product 23390 M 0 23390
0 aden_effect_lipstick_tattoo_01.jpg 1002 1000 N N 21606 14003 product 23391 M 0 23391
0 aden_effect_lipstick_tattoo_03.jpg 1002 1000 N N 21607 14004 product 23392 M 0 23392
0 aden_pro_liquid_lipstick_11_burgundy_4-ml_WHITE.jpg 1000 1000 N N 21608 14005 product 23393 M 0 23393
0 aden_pro_liquid_lipstick_14_cranberry_4-ml_WHITE.jpg 1000 1000 N N 21609 14006 product 23394 M 0 23394
0 aden_pro_liquid_lipstick_03_rosie_brown_4-ml_WHITE.jpg 1000 1000 N N 21610 14007 product 23395 M 0 23395
0 aden_plumping_lip_lacquer_03.jpg 1000 1000 N N 21611 14008 product 23396 M 0 23396
0 aden_plumping_lip_lacquer_02.jpg 1000 1000 N N 21612 14009 product 23397 M 0 23397
0 aden_plumping_lip_lacquer_04.jpg 1000 1000 N N 21613 14010 product 23398 M 0 23398
0 133_aden_lipgloss_03_5_ml.jpg 1000 1000 N N 21614 14011 product 23399 M 0 23399
0 134_aden_lipgloss_04_5_ml.jpg 1000 1000 N N 21615 14012 product 23400 M 0 23400
0 136_aden_lipgloss_06_5_ml.jpg 1000 1000 N N 21616 14013 product 23401 M 0 23401
0 140_aden_lipgloss_10_5_ml.jpg 1000 1000 N N 21617 14014 product 23402 M 0 23402
0 135_aden_lipgloss_05_5_ml.jpg 1000 1000 N N 21618 14015 product 23403 M 0 23403
0 137_aden_lipgloss_07_5_ml.jpg 1000 1000 N N 21619 14016 product 23404 M 0 23404
0 131_aden_lipgloss_01_5_ml.jpg 1000 1000 N N 21620 14017 product 23405 M 0 23405
0 1578.jpeg 1400 1400 N N 21621 14018 product 23406 M 0 23406