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 (
    65456, 65805, 65457, 65804, 65733, 65813, 
    65734, 65101, 65585, 65721, 65462, 
    65685
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00125

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": 84,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (65456,65805,65457,65804,65733,65813,65734,65101,65585,65721,65462,65685)"
        }
      }
    },
    "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
62209 65101 product 0 74442 A 0 D 0 0 sinclair-28in-490-magenta-CSB-studio-cable-alt2.jpg 28" Sinclair, 490-Magenta, CSB-Black Cloth Cord 1000 1000 74442
62210 65101 product 0 74443 A 0 D 0 0 sinclair-28in-975-galvanized-CSGW-studio-cable-full-build-alt2.jpg 28" Sinclair, 975-Galvanized, CSGW-Gold & White Cloth Cord 1000 1000 74443
62211 65101 product 0 74444 A 0 D 0 0 sinclair-28in-100-black-CSB-studio-cable-alt2.jpg 28" Sinclair, 100-Black, CSB-Black Cloth Cord 1000 1000 74444
62212 65101 product 0 74445 A 0 D 0 0 sinclair-28in-715-delphite-CSW-studio-cable-alt2.jpg 28" Sinclair, 715-Delphite, CSW-White Cloth Cord 1000 1000 74445
62213 65101 product 0 74446 A 0 D 0 0 sinclair-28in-400-barn-red-CSR-studio-cable-alt2.jpg 28" Sinclair, 400-Barn Red, CSR-Red Cloth Cord 1000 1000 74446
63581 65457 product 0 75814 A 0 D 0 0 wilcox-vented-flush-mount-10in-997-raw-brass-200-white.jpg 10" Wilcox Vented, 997-Natural Raw Brass, Narrow Slot Vents, Mounting in 200-White 1000 1000 75814
63582 65457 product 0 75815 A 0 D 0 0 wilcox-vented-flush-mount-16in-100-black-975-galvanized.jpg 16" Wilcox Vented, 100-Black, Circle Vents, Wire Cage, 975-Galvanized, Mounting in 975-Galvanized 1000 1000 75815
63583 65457 product 0 75816 A 0 D 0 0 wilcox-vented-flush-mount-12in-300-dark-green.jpg 12" Wilcox Vented, 300-Dark Green, Narrow Slot Vents 1000 1000 75816
63584 65457 product 0 75817 A 0 D 0 0 wilcox-vented-flush-mount-14in-975-galvanized.jpg 14" Wilcox Vented, 975-Galvanized, Circle Vents 1000 1000 75817
64186 65456 product 0 76419 A 0 D 0 0 aero-flush-mount-vented-16in-390-magenta-100-black.jpg 16" Aero Vented, 390-Magenta, Circle Vents, Mounting in 100-Black 1000 1000 76419
66974 65462 product 0 79207 A 0 D 0 0 blue-collar-flush-mount-100-black-12in-WGG-RIB.jpg 12" Blue Collar, 100-Black, RIB-Ribbed Glass 1000 1000 79207
67074 65685 product 0 79307 A 0 D 0 0 original-stem-16in-300-dark-green-HSC-12in-stem.jpg 16" The Original™, 300-Dark Green, 12" Stem, Hang Straight Canopy 1000 1000 79307
67857 65721 product 0 80090 A 0 D 0 0 Parabolic-Adjustable-Sconce-plug-in-975-galvanized-blue-white-cloth-cord_iqrn-cs.jpg Parabolic Plug-In Wall Sconce, 975-Galvanized, CSUW-Blue & White Cloth Cord 1000 1000 80090
68097 65733 product 0 80330 A 0 D 0 0 Avalon-42in-Studio-Cable-975-galvanized-CSBW.jpg 42" Avalon, 975-Galvanized, CSBW-Black & White Cloth Cord 1000 1000 80330
68099 65733 product 0 80332 A 0 D 0 0 Avalon-42in-Studio-Cable-490-magenta-CSB.jpg 42" Avalon, 490-Magenta, CSB-Black Cloth Cord 1000 1000 80332
68103 65734 product 0 80336 A 0 D 0 0 Avalon-42in-chain-100-black-CSBW.jpg 42" Avalon, 100-Black, CSBW-Black & White Cloth Cord 1000 1000 80336
68109 65734 product 0 80342 A 0 D 0 0 Avalon-42in-chain-975-galvanized-CSB.jpg 42" Avalon, 975-Galvanized, CSB-Black Cloth Cord 1000 1000 80342
68575 65721 product 0 80808 A 0 D 0 0 Parabolic-Adjustable-Sconce-plug-in-390-teal-gold-white-cloth-cord.jpg Parabolic Plug-In Wall Sconce, 390-Teal, Extended Arm, CSGW-Gold & White Cloth Cord 1000 1000 80808
68776 65101 product 0 81009 A 0 D 0 0 sinclair-28in-200-white-CSW-studio-cable-alt2.jpg 28" Sinclair, 200-White, CSW-White Cloth Cord, Shown with Voronoi I LED Tala Lamp 1000 1000 81009
68777 65101 product 0 81010 A 0 D 0 0 sinclair-28in-705-navy-CSGW-studio-cable-alt2_5c2t-hm.jpg 28" Sinclair, 705-Navy, CSGW-Gold & White Cloth Cord 1000 1000 81010
68975 65101 product 0 81208 A 0 D 0 0 sinclair-28in-615-orb-CSBB-studio-cable-alt2_fqdd-1i.jpg 28" Sinclair, 615-Oil-Rubbed Bronze, CSBB-Black & Brown Cloth Cord 1000 1000 81208
69297 65805 product 0 81530 A 0 D 0 0 Laramie-chain-pendant-30in-200-white-black-cloth-cord.jpg 30-Laramie, 200-White, Mounting in 100-Black, CSB-Black Cloth Cord 1000 1000 81530
69322 65804 product 0 81555 A 0 D 0 0 Laramie-stem-pendant-30in-200-white-100-black.jpg 30" Laramie, 200-White, Mounting in 100-Black 1000 1000 81555
69371 65813 product 0 81604 A 0 D 0 0 Chestnut-chain-pendant-30in-100-black-black-cloth-cord-400-barn-red-standard-guard-ribbed-glass.jpg 30" Chestnut, 100-Black, CGG-Standard Cast Guard, 400-Barn Red, RIB-Ribbed Glass, Mounting in 400-Barn Red, CSB-Black Cloth Cord 1000 1000 81604
59073 65456 product 0 71306 A 1 D 0 0 aero-flush-mount-vented-12in-997-raw-brass-200-white.jpg 12" Aero Vented, 997-Natural Raw Brass, Narrow Slot Vents, 200-White 1000 1000 71306
66915 65685 product 0 79148 A 1 D 0 0 original-stem-16in-200-white-16in-stem.jpg 16" The Original™, 200-White, 18" Stem, Hang Straight Canopy 1000 1000 79148
66976 65462 product 0 79209 A 1 D 0 0 blue-collar-flush-mount-400-barn-red-WGG-RIB.jpg 16" Blue Collar, 400-Barn Red, RIB-Ribbed Glass 1000 1000 79209
68096 65733 product 0 80329 A 1 D 0 0 Avalon-42in-Studio-Cable-200-white-full-build.jpg 42" Avalon, 200-White, SWH-Standard White Cord 1000 1000 80329
68108 65734 product 0 80341 A 1 D 0 0 Avalon-42in-Stem-700-royal-blue-CSUW.jpg 42" Avalon, 700-Royal Blue, CSUW-Blue & White Cloth Cord 1000 1000 80341
69299 65805 product 0 81532 A 1 D 0 0 Laramie-chain-pendant-30in-311-jadite-brown-and-black-chevron-cord.jpg 30" Laramie, 311-Jadite, CSBB-Black & Brown Cloth Cord 1000 1000 81532
69323 65804 product 0 81556 A 1 D 0 0 Laramie-stem-pendant-30in-full-build-311-jadite.jpg 30" Laramie, 311-Jadite 1000 1000 81556
69374 65813 product 0 81607 A 1 D 0 0 Chestnut-chain-pendant-30in-311-jadite-brown-and-black-chevron-cord-standard-guard-ribbed-glass.jpg 30" Chestnut, 311-Jadite, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSBB-Black & Brown Cloth Cord 1000 1000 81607
59075 65456 product 0 71308 A 2 D 0 0 aero-flush-mount-vented-14in-300-dark-green-WC-975-galvanized.jpg 14" Aero Vented, 300-Dark Green, Narrow Slot Vents, Wire Cage, 975-Galvanized 1000 1000 71308
66980 65462 product 0 79213 A 2 D 0 0 blue-collar-flush-mount-975-galvanized-WGG-FST.jpg 14" Blue Collar, 975-Galvanized, FST-Frosted Glass 1000 1000 79213
67075 65685 product 0 79308 A 2 D 0 0 original-stem-16in-605-rust-12in-stem.jpg 16" The Original™, 605-Rust, 12" Stem 1000 1000 79308
68101 65733 product 0 80334 A 2 D 0 0 Avalon-42in-Studio-Cable-700-royal-blue-CSUW.jpg 42" Avalon, 700-Royal Blue, CSUW-Blue & White Cloth Cord 1000 1000 80334
68104 65734 product 0 80337 A 2 D 0 0 Avalon-42in-chain-200-white-CSW-full-build.jpg 42" Avalon, 200-White, CSW-White Cloth Cord 1000 1000 80337
68576 65721 product 0 80809 A 2 D 0 0 Parabolic-Adjustable-Sconce-plug-in-500-buttery-yellow-with-arm.jpg Parabolic Plug-In Wall Sconce, 500-Buttery Yellow, Extended Arm, CSBP-Black & Pink Cloth Cord 1000 1000 80809
69301 65805 product 0 81534 A 2 D 0 0 Laramie-chain-pendant-30in-500-buttery-yellow-black-and-gold-cloth-cord-975-galvanized.jpg 30" Laramie, 500-Buttery Yellow, Mounting in 975-Galvanized, CSBG-Black & Gold Cloth Cord 1000 1000 81534
69324 65804 product 0 81557 A 2 D 0 0 Laramie-stem-pendant-30in-100-black-400-barn-red-standard-guard-clear-glass.jpg 30" Laramie, 100-Black, CGG-Standard Cast Guard, 400-Barn Red, CLR-Clear Glass 1000 1000 81557
69372 65813 product 0 81605 A 2 D 0 0 Chestnut-chain-pendant-30in-200-white-black-cloth-cord.jpg 30" Chestnut, 200-White, Mounting in 100-Black, CSB-Black Cloth Cord 1000 1000 81605
59074 65456 product 0 71307 A 3 D 0 0 aero-flush-mount-vented-12in-barn-red.jpg 12" Aero Vented, 400-Barn Red, Circle Vents 1000 1000 71307
66977 65462 product 0 79210 A 3 D 0 0 blue-collar-flush-mount-700-royal-blue-12in-WGG-RIB.jpg 12" Blue Collar, 700-Royal Blue, RIB-Ribbed Glass 1000 1000 79210
67258 65685 product 0 79491 A 3 C 0 0 original-stem-mount-pendant-light-16in-00-black-12in-stem-residential-exterior-front-porch-farmhouse.jpg 16" The Original™, 100-Black, 12" Stem 1500 2250 79491
68107 65734 product 0 80340 A 3 D 0 0 Avalon-42in-chain-490-magents-100-black-CSBP.jpg 42" Avalon, 490-Magenta, Mounting in 100-Black, CSBP-Black & Pink Cloth Cord 1000 1000 80340
68577 65721 product 0 80810 A 3 D 0 0 Parabolic-Adjustable-Sconce-plug-in-311-jadite-grey-cloth-cord.jpg Parabolic Plug-In Wall Sconce, 311-Jadite, CMG-Grey Cloth Cord 1000 1000 80810
69300 65805 product 0 81533 A 3 D 0 0 Laramie-chain-pendant-30in-390-teal-white-cloth-cord-200-white-standard-guard-ribbed-glass.jpg 30" Laramie, 390-Teal, CGG-Standard Cast Guard, 200-White, RIB-Ribbed Glass, CSW-White Cloth Cord 1000 1000 81533
69327 65804 product 0 81560 A 3 D 0 0 Laramie-stem-pendant-30in-500-buttery-yellow-standard-guard-ribbed-glass.jpg 30" Laramie, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 81560
69373 65813 product 0 81606 A 3 D 0 0 Chestnut-chain-pendant-30in-300-dark-green-black-and-white-cloth-cord-100-black.jpg 30" Chestnut, 300-Dark Green, Mounting in 100-Black, CSBW-Black & White Cloth Cord 1000 1000 81606
59072 65456 product 0 71305 A 4 D 0 0 aero-flush-mount-vented-12in-200-white.jpg 12" Aero Vented, 200-White, Narrow Slot Vents 1000 1000 71305
66997 65462 product 0 79230 A 4 D 0 0 blue-collar-flush-307-emerald-green-975-galvanized-fst.jpg 16" Blue Collar, 307-Emerald Green, FST-Frosted Glass, Mounting in 975-Galvanized 1000 1000 79230
67257 65685 product 0 79490 A 4 C 0 0 original-stem-mount-pendant-light-16in-00-black-12in-stem-residential-exterior-front-porch-farmhouse-night-on.jpg 16" The Original™, 100-Black, 12" Stem 1500 1000 79490
68095 65733 product 0 80328 A 4 D 0 0 Avalon-42in-studio-cable-100-black-CSBG.jpg 42" Avalon, 100-Black, CSBG-Black & Gold Cloth Cord 1000 1000 80328
68573 65721 product 0 80806 A 4 D 0 0 Parabolic-Adjustable-Sconce-plug-in-200-white-with-arm.jpg Parabolic Plug-In Wall Sconce, 200-White, Extended Arm, SWH-Standard White Cord 1000 1000 80806
69296 65805 product 0 81529 A 4 D 0 0 Laramie-chain-pendant-30in-100-black-black-cloth-cord-400-barn-red-standard-guard-ribbed-glass.jpg 30" Laramie, 100-Black, CGG-Standard Cast Guard, 400-Barn Red, RIB-Ribbed Glass, Mounting in 400-Barn Red, CSB-Black Cloth Cord 1000 1000 81529
69325 65804 product 0 81558 A 4 D 0 0 Laramie-stem-pendant-30in-300-dark-green-100-black.jpg 30" Laramie, 300-Dark Green, Mounting in 100-Black 1000 1000 81558
69376 65813 product 0 81609 A 4 D 0 0 Chestnut-chain-pendant-30in-500-buttery-yellow-black-and-gold-cloth-cord-975-galvanized-standard-guard-ribbed-glass.jpg 30" Chestnut, 500-Buttery Yellow, CGG-Standard Cast Guard, 975-Galvanized, RIB-Ribbed Glass, Mounting in 975-Galvanized, CSBG-Black & Gold Cloth Cord 1000 1000 81609
59076 65456 product 0 71309 A 5 D 0 0 aero-flush-mount-vented-14in-500-buttery-yellow.jpg 14" Aero Vented, 500-Buttery Yellow, Narrow Slot Vents 1000 1000 71309
66979 65462 product 0 79212 A 5 D 0 0 blue-collar-flush-mount-810-graphite-12in-WGG-RIB.jpg 12" Blue Collar, 810-Graphite, RIB-Ribbed Glass 1000 1000 79212
67255 65685 product 0 79488 A 5 C 0 0 original-stem-mount-pendant-light-16in-00-black-12in-stem-residential-exterior-front-porch-farmhouse-holiday-american-flag.jpg 16" The Original™, 100-Black, 12" Stem 1080 1350 79488
68098 65733 product 0 80331 A 5 D 0 0 Avalon-42in-Studio-Cable-400-barn-red-CRZ.jpg 42" Avalon, 400-Barn Red, CRZ-Red Chevron Cord 1000 1000 80331
68105 65734 product 0 80338 A 5 D 0 0 Avalon-42in-chain-307-emerald-green-CSBB.jpg 42" Avalon, 307-Emerald Green, CSBB-Black & Brown Cloth Cord 1000 1000 80338
68574 65721 product 0 80807 A 5 D 0 0 Parabolic-Adjustable-Sconce-plug-in-300-dark-green-gold-black-cloth-cord-with-arm.jpg Parabolic Plug-In Wall Sconce, 300-Dark Green, Extended Arm, CSBG-Black & Gold Cloth Cord 1000 1000 80807
69303 65805 product 0 81536 A 5 D 0 0 Laramie-chain-pendant-30in-975-galvanized-red-and-white-cloth-cord.jpg 30" Laramie, 975-Galvanized, CSRW-Red & White Cloth Cord 1000 1000 81536
69328 65804 product 0 81561 A 5 D 0 0 Laramie-stem-pendant-30in-975-galvanized.jpg 30" Laramie, 975-Galvanized 1000 1000 81561
69375 65813 product 0 81608 A 5 D 0 0 Chestnut-chain-pendant-30in-390-teal-white-cloth-cord_jryr-d1.jpg 30" Chestnut, 390-Teal, CSW-White Cloth Cord 1000 1000 81608
64187 65456 product 0 76420 A 6 D 0 0 aero-flush-mount-vented-16in-700-royal-blue.jpg 16" Aero Vented, 700-Royal Blue, Circle Vents 1000 1000 76420
66978 65462 product 0 79211 A 6 D 0 0 blue-collar-flush-mount-705-navy-WGG-RIB.jpg 16" Blue Collar, 705-Navy, RIB-Ribbed Glass 1000 1000 79211
67256 65685 product 0 79489 A 6 C 0 0 alt-original-warehouse-stem-mount-pendant-100-black-16in-residential-exterior-back-porch.jpg 16" The Original™, 100-Black, 18" Stems 1500 1870 79489
68100 65733 product 0 80333 A 6 D 0 0 Avalon-42in-Studio-Cable-705-navy-blue-CSgW.jpg 42" Avalon, 705-Navy Blue, CSGW-Gold & White Cloth Cord 1000 1000 80333
68106 65734 product 0 80339 A 6 D 0 0 Avalon-42in-chain-500-buttery-yellow-975-galvanized-CSBW.jpg 42" Avalon, 500-Butter Yellow, Mounting in 975-Galvanized, CSBW-Black & White Cloth Cord 1000 1000 80339
68578 65721 product 0 80811 A 6 D 0 0 Parabolic-Adjustable-Sconce-plug-in-997-raw-brass-blown-black-chevron-cord-with-arm.jpg Parabolic Plug-In Wall Sconce, 997-Natural Raw Brass, Extended Arm, CSBB-Black & Brown Cloth Cord 1000 1000 80811
69302 65805 product 0 81535 A 6 D 0 0 Laramie-chain-pendant-30in-705-navy-gold-and-white-cloth-cord-heavy-duty-guard-ribbed-glass.jpg 30" Laramie, 705-Navy, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass, CSGW-Gold & White Cloth Cord 1000 1000 81535
69326 65804 product 0 81559 A 6 D 0 0 Laramie-stem-pendant-30in-390-teal.jpg 30" Laramie, 390-Teal 1000 1000 81559
69378 65813 product 0 81611 A 6 D 0 0 Chestnut-chain-pendant-30in-975-galvanized-red-and-white-cloth-cord-heavy-duty-guard-ribbed-glass.jpg 30" Chestnut, 975-Galvanized, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass, CSRW-Red & White Cloth Cord 1000 1000 81611
66975 65462 product 0 79208 A 7 D 0 0 blue-collar-flush-mount-300-dark-green-12in-WGG-RIB.jpg 12" Blue Collar, 300-Dark Green, RIB-Ribbed Glass 1000 1000 79208
68131 65733 product 0 80364 A 7 C 0 0 living-room-6469856-residential-interior-avalon-oversized-studio-pendant-light-42in-975-galvanized-alt.jpg 42" Avalon, 975-Galvanized, CSBB-Black & Brown Cloth Cord 1500 1636 80364
68563 65721 product 0 80796 A 7 C 0 0 parabolic-adjustable-sconce-pexels-burst-545012.jpg Parabolic Wall Sconce, 390-Teal, CSBW-Black & White Cloth Cord 1500 1000 80796
69377 65813 product 0 81610 A 7 D 0 0 Chestnut-chain-pendant-30in-705-navy-gold-and-white-cloth-cord.jpg 30" Chestnut, 705-Navy, CSGW-Gold & White Cloth Cord 1000 1000 81610
68565 65721 product 0 80798 A 8 C 0 0 parabolic-adjustable-sconce-point3d-commercial-imaging-ltd-wRBotCP7UxU-unsplash.jpg Parabolic Wall Sconce, 975-Galvanized, Extended Arm, CSR-Red Cloth Cord 1500 1000 80798
68582 65721 product 0 80815 A 9 C 0 0 Detail-1.jpg 1000 1000 80815
68583 65721 product 0 80816 A 10 C 0 0 Detail-2.jpg 1000 1000 80816
68564 65721 product 0 80797 A 11 C 0 0 parabolic-adjustable-sconce-point3d-commercial-imaging-ltd-wRBotCP7UxU-unsplash-crop.jpg Parabolic Wall Sconce, 975-Galvanized, Extended Arm, CSR-Red Cloth Cord 1280 1920 80797