SELECT 
  cscart_images_links.*, 
  cscart_images.image_path, 
  cscart_common_descriptions.description AS alt, 
  cscart_images.image_x, 
  cscart_images.image_y, 
  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 = 'A' 
  AND cscart_images_links.object_id IN (
    65853, 65864, 65877, 65874, 65863, 65869, 
    65868, 65862, 65850, 65880, 65852, 
    65855, 65892, 65896, 65854, 65895, 
    65866, 65857, 65876, 65858, 65856, 
    65860, 65937, 65859
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00087

JSON explain

{
  "query_block": {
    "select_id": 1,
    "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"],
          "rows": 63,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (65853,65864,65877,65874,65863,65869,65868,65862,65850,65880,65852,65855,65892,65896,65854,65895,65866,65857,65876,65858,65856,65860,65937,65859)"
        }
      }
    },
    "table": {
      "table_name": "cscart_images",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "3",
      "used_key_parts": ["image_id"],
      "ref": ["cscart_migrate.cscart_images_links.detailed_id"],
      "rows": 1,
      "filtered": 100,
      "attached_condition": "trigcond(cscart_images_links.detailed_id = cscart_images.image_id)"
    },
    "table": {
      "table_name": "cscart_common_descriptions",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "107",
      "used_key_parts": ["object_id", "lang_code", "object_holder"],
      "ref": ["cscart_migrate.cscart_images.image_id", "const", "const"],
      "rows": 1,
      "filtered": 100,
      "attached_condition": "trigcond(cscart_common_descriptions.object_id = cscart_images.image_id and cscart_common_descriptions.object_holder = 'images' and cscart_common_descriptions.lang_code = 'en' and trigcond(cscart_images.image_id is not null))"
    }
  }
}

Result

pair_id object_id object_type image_id detailed_id type position image_type show_gallery gallery_category_id image_path alt image_x image_y images_image_id
70145 65850 product 0 82378 A 0 D 0 0 LED-bulbs-ST19-Clear-Spiral-250-Lumens-2100K-off-GreenCreative.jpg LED Clear ST19 250 Lumen Bulb - Off 1000 1000 82378
70148 65852 product 0 82381 A 0 D 0 0 LED-bulbs-ST19-Smoky-Spiral-150-Lumens-4000K-off-GreenCreative.jpg LED Smoke ST19 150 Lumen Bulb - Off 1000 1000 82381
70150 65853 product 0 82383 A 0 D 0 0 LED-bulbs-G40-Clear-Spiral-250-Lumens-2100K-off-GreenCreative.jpg LED Clear G40 250 Lumen Bulb - Off 1000 1000 82383
70152 65854 product 0 82385 A 0 D 0 0 LED-bulbs-A50-Clear-Spiral-300-Lumens-2100K-off-GreenCreative.jpg LED Clear A50 300 Lumen Bulb - Off 1000 1000 82385
70154 65855 product 0 82387 A 0 D 0 0 LED-bulbs-A50-Amber-Spiral-300-Lumens-2000K-off-GreenCreative.jpg LED Amber A50 300 Lumen Bulb - Off 1000 1000 82387
70156 65856 product 0 82389 A 0 D 0 0 LED-bulbs-A50-Smoky-Spiral-150-Lumens-4000K-off-GreenCreative.jpg LED Smoky A50 150 Lumen Bulb - Off 1000 1000 82389
70159 65857 product 0 82392 A 0 D 0 0 LED-bulbs-G63-Clear-Spiral-300-Lumens-2100K-off-GreenCreative.jpg LED Clear G63 300 Lumen Bulb - Off 1000 1000 82392
70161 65858 product 0 82394 A 0 D 0 0 LED-bulbs-G63-Amber-Spiral-300-Lumens-2000K-off-GreenCreative.jpg LED Amber G63 300 Lumen Bulb - Off 1000 1000 82394
70163 65859 product 0 82396 A 0 D 0 0 LED-bulbs-G63-Smoky-Spiral-150-Lumens-4000K-off-GreenCreative.jpg LED Smoky G63 150 Lumen Bulb - Off 1000 1000 82396
70165 65860 product 0 82398 A 0 D 0 0 LED-bulbs-E53-Smoky-Ombre-Spiral-110-Lumens-1800K-off-GreenCreative.jpg LED Smoky Ombre E53 110 Lumen Bulb - Off 1000 1000 82398
70169 65862 product 0 82402 A 0 D 0 0 LED-bulbs-Ribbed-Clear-Edison-500-Lumens-2000K-off-GreenCreative.jpg LED Ribbed R32 500 Lumen Bulb - Off 1000 1000 82402
70171 65863 product 0 82404 A 0 D 0 0 LED-bulbs-Crystal-Clear-Edison-500-Lumens-2000K-off-GreenCreative.jpg LED Crystal Clear C35 500 Lumen Bulb - Off 1000 1000 82404
70173 65864 product 0 82406 A 0 D 0 0 LED-bulbs-T10-Amber-Helix-450-Lumens-2000K-off-GreenCreative.jpg LED Amber T10 450 Lumen Bulb - Off 1000 1000 82406
70177 65866 product 0 82410 A 0 D 0 0 LED-bulbs-A19-Clear-XX-1150-Lumens-2700K-off-GreenCreative.jpg LED Clear A19 1150 Lumen Bulb - Off 1000 1000 82410
70181 65868 product 0 82414 A 0 D 0 0 LED-bulbs-G25-Chrome-Edison-400-Lumens-2700K-off-GreenCreative.jpg LED Silver Bowl G25 400 Lumen Bulb - Off 1000 1000 82414
70183 65869 product 0 82416 A 0 D 0 0 LED-bulbs-G25-Clear-Edison-400-Lumens-2700K-off-GreenCreative.jpg LED Clear G25 350 Lumen Bulb - Off 1000 1000 82416
70295 65874 product 0 82528 A 0 D 0 0 LED-bulbs-B11-Clear-200-Lumens-2700K-off-GreenCreative.jpg LED Clear B11 200 Lumen Bulb - Off 1000 1000 82528
70299 65876 product 0 82532 A 0 D 0 0 LED-bulbs-B11-Clear-500-Lumens-2700K-off-GreenCreative.jpg LED Clear B11 500 Lumen Bulb - Off 1000 1000 82532
70301 65877 product 0 82534 A 0 D 0 0 LED-bulbs-B11-Clear-Edison-500-Lumens-2700K-off-GreenCreative.jpg LED Clear B11 500 Lumen Bulb - E26 Base - Off 1000 1000 82534
70307 65880 product 0 82540 A 0 D 0 0 LED-bulbs-A19-Half-Chrome-Edison-700-Lumens-2700K-off-GreenCreative.jpg LED Silver Bowl A19 700 Lumen Bulb - Off 1000 1000 82540
72785 65892 product 0 85018 A 0 D 0 0 Ellington-LED-gooseneck-16in-G22-630-Beige.jpg 16" Cassidy LED Globe Gooseneck Light, 630-Beige, G22 Gooseneck Arm, Decorative Backing Plate & Hex Cover 1000 1000 85018
72786 65892 product 0 85019 A 0 D 0 0 Ellington-LED-gooseneck-16in-G24-975-Galvanized.jpg 16" Cassidy LED Globe Gooseneck Light, 975-Galvanized, G24 Gooseneck Arm 1000 1000 85019
72793 65892 product 0 85026 A 0 D 0 0 Ellington-LED-gooseneck-16in-G12-206-matte-white.jpg 16" Cassidy LED Globe Gooseneck Light, 206-Matte White, G12 Gooseneck Arm 1000 1000 85026
72944 65895 product 0 85177 A 0 D 0 0 Oxford-pendant-studio-100-black-rust-cloth-cord-alt.jpg Oxford LED Studio Pendant Light, 100-Black, Rust Cloth Cord 1000 1000 85177
72953 65896 product 0 85186 A 0 D 0 0 Oxford-pendant-stem-100-black.jpg Oxford LED Stem Pendant Light, 100-Black 1000 1000 85186
72954 65896 product 0 85187 A 0 D 0 0 Oxford-pendant-stem-206-matte-white.jpg Oxford LED Stem Pendant Light, 206-Matte White 1000 1000 85187
72955 65896 product 0 85188 A 0 D 0 0 Oxford-pendant-stem-300-dark-green.jpg Oxford LED Stem Pendant Light, 300-Dark Green 1000 1000 85188
72956 65896 product 0 85189 A 0 D 0 0 Oxford-pendant-stem-390-teal.jpg Oxford LED Stem Pendant Light, 390-Teal 1000 1000 85189
72957 65896 product 0 85190 A 0 D 0 0 Oxford-pendant-stem-400-barn-red.jpg Oxford LED Stem Pendant Light, 400-Barn Red 1000 1000 85190
72958 65896 product 0 85191 A 0 D 0 0 Oxford-pendant-stem-320-fern-green.jpg Oxford LED Stem Pendant Light, 320-Fern Green 1000 1000 85191
72959 65896 product 0 85192 A 0 D 0 0 Oxford-pendant-stem-630-Beige.jpg Oxford LED Stem Pendant Light, 630-Beige 1000 1000 85192
72960 65896 product 0 85193 A 0 D 0 0 Oxford-pendant-stem-705-navy.jpg Oxford LED Stem Pendant Light, 705-Navy 1000 1000 85193
72961 65896 product 0 85194 A 0 D 0 0 Oxford-pendant-stem-975-galvanized.jpg Oxford LED Stem Pendant Light, 975-Galvanized 1000 1000 85194
72975 65896 product 0 85208 A 0 C 0 0 zs44LD0cwMg-commercial-office-conference-room-dining-room-table-oxford-stem-pendant-607-taupe-square.jpg Oxford LED Stem Pendant, 607-Taupe 1000 1000 85208
72976 65896 product 0 85209 A 0 C 0 0 587224690-residential-interior-dining-room-table-oxford-stem-pendant-300-dark-green-square.jpg Oxford LED Stem Pendant, 300-Dark Green 1000 1000 85209
72977 65896 product 0 85210 A 0 C 0 0 591311375-residential-kitchen-Oxford-stem-pendant-100-black-square.jpg Oxford LED Stem Pendant, 100-Black 1000 1000 85210
72978 65896 product 0 85211 A 0 C 0 0 GcodHo-commercial-lounge-residential-kitchen-oxford-500-buttery-yellow-stem-pendant-square.jpg Oxford LED Stem Pendant, 500-Buttery Yellow 1000 1000 85211
73526 65937 product 0 85759 A 0 D 0 0 Suora-linear-suspension-light-24in-ash-wood-single-canopy-630-beige.jpg 24" Suora, Ash Wood, Single Canopy, 630-Beige 1000 1000 85759
72945 65895 product 0 85178 A 1 D 0 0 Oxford-pendant-studio-206-matte-white-blush-pink-cloth-cord-alt.jpg Oxford LED Studio Pendant Light, 206-Matte White, Blush Pink Cloth Cord 1000 1000 85178
73530 65937 product 0 85763 A 1 D 0 0 Suora-linear-suspension-light-35in-oak-wood-dual-canopy-975-galvanized.jpg 35" Suora, Oak Wood, Dual Canopy, 975-Galvanized 1000 1000 85763
72946 65895 product 0 85179 A 2 D 0 0 Oxford-pendant-studio-300-dark-green-SBK-standard-black-cord-alt.jpg Oxford LED Studio Pendant Light, 300-Dark Green, Standard Black Cord 1000 1000 85179
73527 65937 product 0 85760 A 2 D 0 0 Suora-linear-suspension-light-24in-maple-wood-single-canopy-206-matte-white.jpg 24" Suora, Maple Wood, Single Canopy, 206-Matte White 1000 1000 85760
72947 65895 product 0 85180 A 3 D 0 0 Oxford-pendant-studio-390-teal-SBK-standard-black-cord-alt.jpg Oxford LED Studio Pendant Light, 390-Teal, Standard Black Cord 1000 1000 85180
73531 65937 product 0 85764 A 3 D 0 0 Suora-linear-suspension-light-35in-walnut-wood-dual-canopy-206-matte-white.jpg 35" Suora, Walnut Wood, Dual Canopy, 206-Matte White 1000 1000 85764
72948 65895 product 0 85181 A 4 D 0 0 Oxford-pendant-studio-400-barn-red-swirl-cloth-cord-alt.jpg Oxford LED Studio Pendant Light, 400-Barn Red, Barn Red & Black Swirl Cloth Cord 1000 1000 85181
73533 65937 product 0 85766 A 4 D 0 0 Suora-linear-suspension-light-46in-oak-wood-single-canopy-206-matte-white.jpg 46" Suora, Oak Wood, Single Canopy, 206-Matte White 1000 1000 85766
72949 65895 product 0 85182 A 5 D 0 0 Oxford-taupe.jpg Oxford LED Studio Pendant Light, 607-Taupe, Confetti Cloth Cord 1000 1000 85182
73528 65937 product 0 85761 A 5 D 0 0 Suora-linear-suspension-light-24in-walnut-wood-single-canopy-206-matte-white.jpg 24" Suora, Walnut Wood, Single Canopy, 206-Matte White 1000 1000 85761
72951 65895 product 0 85184 A 6 D 0 0 Oxford-pendant-studio-705-navy-cloth-cord-alt.jpg Oxford LED Studio Pendant Light, 705-Navy, Navy Cloth Cord 1000 1000 85184
73532 65937 product 0 85765 A 6 D 0 0 Suora-linear-suspension-light-46in-maple-wood-dual-canopy-206-matte-white.jpg 46" Suora, Maple Wood, Dual Canopy, 206-Matte White 1000 1000 85765
72950 65895 product 0 85183 A 7 D 0 0 Oxford-pendant-studio-630-Beige-creme-cloth-cord-alt.jpg Oxford LED Studio Pendant Light, 630-Beige, Creme Cloth Cord 1000 1000 85183
73529 65937 product 0 85762 A 7 D 0 0 Suora-linear-suspension-light-35in-ash-wood-single-canopy-206-matte-white.jpg 35" Suora, Ash Wood, Single Canopy, 206-Matte White 1000 1000 85762
72952 65895 product 0 85185 A 8 D 0 0 Oxford-pendant-studio-975-galvanized-silver-cloth-cord-alt.jpg Oxford LED Studio Pendant Light, 975-Galvanized, Silver Cloth Cord 1000 1000 85185
73642 65937 product 0 85875 A 8 D 0 0 FSC-stustainable-hardwoods_wf48-ah.jpg 1000 1000 85875
72979 65895 product 0 85212 A 9 C 0 0 H6N4Go-commercial-interior-restaurant-studio-pendant-100-black-rust-cloth-cord-square.jpg Oxford LED Studio Pendant Light, 100-Black, Rust Cloth Cord 1000 1000 85212
73534 65937 product 0 85767 A 9 D 0 0 adjustable.jpg 1000 1000 85767
72980 65895 product 0 85213 A 10 C 0 0 974171263-commercial-interior-lounge-hotel-office-Oxford-studio-pendant-206-matte-white-square.jpg Oxford LED Studio Pendant Light, 206-Matte White, Standard Black Cord 1000 1000 85213
73576 65937 product 0 85809 A 10 C 0 0 442212913-residential-interior-dining-room-table-Suora-linear-suspension-light-46in-oak-single-canopy-206-matte-white-square.jpg 46" Suora, Oak Wood, Single Canopy, 206-Matte White 1000 1000 85809
72983 65895 product 0 85216 A 11 D 0 0 GcodHo-commercial-lounge-residential-kitchen-oxford-500-buttery-yellow-studio-pendant-rust-cloth-cord-square.jpg Oxford LED Studio Pendant Light, 500-Buttery Yellow, Rust Cloth Cord 1000 1000 85216
73575 65937 product 0 85808 A 11 C 0 0 3282687-commercial-interior-office-confernce-room-dining-room-table-Suora-linear-suspension-light-46in-maple-wood-sqaure.jpg 46" Suora, Maple Wood 1000 1000 85808
72981 65895 product 0 85214 A 12 C 0 0 adjustable-alt.jpg Adjustable Studio Mount 1000 1000 85214
73577 65937 product 0 85810 A 12 C 0 0 1007087759-residential-interior-dining-room-Suora-linear-suspension-light-46in-walnut-square.jpg 46" Suora, Walnut Wood 1000 1000 85810
73535 65937 product 0 85768 A 13 C 0 0 Suora-close-up.jpg Suora LED Linear Suspension Light, Oak Wood 1000 1000 85768