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 (64747, 64989, 65096, 64847) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00119

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": 60,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (64747,64989,65096,64847)"
        }
      }
    },
    "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
41719 64847 product 0 53952 A 0 D 0 0 sinclair-stem-loop-14in-400-barn-red-nickel-knob-switch-WC-wire-cage-975-galvanized.jpg 14" Sinclair Stem & Loop, 400-Barn Red, Wire Cage, 975-Galvanized, NK-Nickel with Knob Switch, TBK-Black Cotton Twist Cord 1000 1000 53952
50320 64989 product 0 62553 A 0 D 0 0 sinclair-cord-LED-12in-480-blush-pink-CSGW.jpg 12" Sinclair LED, 480-Blush Pink, CSGW-Gold & White Cloth Cord 1000 1000 62553
63087 64747 product 0 75320 A 0 D 0 0 Dominion-Cord-16in-975-galvanized-SBK-standard-black.jpg 16" Dominion, 975-Galvanized, SBK-Standard Black Cord 1000 1000 75320
71117 65096 product 0 83350 A 0 D 0 0 sinclair-spoke-top-cord-12in-995-raw-copper-100-black-arms-key.jpg 12" Sinclair Spoke Top Pendant, 995-Natural Raw Copper, Cup in 100-Black, With Arms, Key Switch, CSBB-Black & Brown Chevron Cloth Cord, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 83350
52634 65096 product 0 64867 A 1 D 0 0 sinclair-spoke-top-cord-16in-480-blush-pink-975-galvanized-key-CSGW.jpg 16" Sinclair Spoke Top Pendant, 480-Blush Pink, Cup in 975-Galvanized, Turn Key Switch, CSGW-Gold & White Cloth Cord, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 64867
63088 64747 product 0 75321 A 1 D 0 0 Dominion-Cord-Full-Build-12in-400-Barn-Red-CSB.jpg 12" Dominion, 400-Barn Red, CSB-Black Cloth Cord 1000 1000 75321
65032 64989 product 0 77265 A 1 D 0 0 sinclair-cord-LED-full-build-16in-250-white-100-black-CSBW.jpg 16" Sinclair LED, 250-Porcelain White, CSBW-Black & White Cloth Cord, Ceiling Canopy in 150-Black 1000 1000 77265
37750 64747 product 0 49983 A 2 D 0 0 Dominion-Cord-14in-997-raw-brass-CSGW-gold-white.jpg 14" Dominion, 997-Natural Raw Brass, CSGW-Gold & White Cloth Cord 1000 1000 49983
52639 65096 product 0 64872 A 2 D 0 0 sinclair-spoke-top-cord-10in-navy-975-galvanized-paddle-TRW.jpg 10" Sinclair Spoke Top Pendant, 705-Navy, Cup in 975-Galvanized, With Arms, Paddle Switch, TRD-Red Cotton Twist Cord, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 64872
65028 64989 product 0 77261 A 2 D 0 0 sinclair-cord-LED-12in-997-raw-brass-CSBG.jpg 12" Sinclair LED, 997-Natural Raw Brass, CSBG-Black & Gold Cloth Cord 1000 1000 77261
37749 64747 product 0 49982 A 3 D 0 0 Dominion-Cord-14in-370-mint-SWH-standard-white.jpg 12" Dominion, 370-Mint, SWH-Standard White Cord 1000 1000 49982
41708 64847 product 0 53941 A 3 D 0 0 sinclair-stem-loop-10in-705-navy-brass-knob-switch.jpg 10" Sinclair Stem & Loop, 705-Navy, BK-Brass with Knob Switch, TPT-Putty Cotton Twist Cord, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 53941
52631 65096 product 0 64864 A 3 D 0 0 sinclair-spoke-top-cord-14in-975-galvanized-400-barn-red-no-arms-CSB.jpg 14" Sinclair Spoke Top Pendant, 975-Galvanized, Cup in 400-Barn Red, CSB-Black Cloth Cord, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 64864
65029 64989 product 0 77262 A 3 D 0 0 sinclair-cord-LED-14in-100-black-CRD.jpg 14" Sinclair LED, 100-Black, CSR-Red Cloth Cord 1000 1000 77262
37751 64747 product 0 49984 A 4 D 0 0 Dominion-Cord-16in-100-black-CSBW-black-white.jpg 16" Dominion, 100-Black, CSBW-Black & White Cloth Cord 1000 1000 49984
52630 65096 product 0 64863 A 4 D 0 0 sinclair-spoke-top-cord-14in-307-emerald-TBB.jpg 14" Sinclair Spoke Top Pendant, 307-Emerald Green, With Arms, TBB-Brown & Beige Cotton Twist Cord, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 64863
65030 64989 product 0 77263 A 4 D 0 0 sinclair-cord-LED-14in-975-galvanized-CBP.jpg 14" Sinclair LED, 975-Galvanized, CSBP-Black & Pink Cloth Cord 1000 1000 77263
50321 64989 product 0 62554 A 5 D 0 0 sinclair-cord-LED-12in-500-buttery-yellow-CSW.jpg 12" Sinclair LED, 500-Buttery Yellow, CSW-White Cloth Cord 1000 1000 62554
52629 65096 product 0 64862 A 5 D 0 0 sinclair-spoke-top-cord-12in-500-buttery-yellow-200-white-paddle-TWH.jpg 12" Sinclair Spoke Top Pendant, 500-Buttery Yellow, Cup in 200-White, Turn Key Switch, TWH-White Cotton Twist Cord, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 64862
37752 64747 product 0 49985 A 6 D 0 0 Dominion-Cord-16in-490-magenta-TBK-twisted-black.jpg 16" Dominion, 490-Magenta, TBK-Black Cotton Twist Cord 1000 1000 49985
41709 64847 product 0 53942 A 6 D 0 0 sinclair-stem-loop-12in-480-blush-pink-nickel-knob-switch.jpg 12" Sinclair Stem & Loop, 480-Blush Pink, NK-Nickle with Knob Switch, TBK-Black Cotton Twist Cord, Nostalgic Edison-Style 1910 Era 40 Watt Light Bulb 1000 1000 53942
52633 65096 product 0 64866 A 6 D 0 0 sinclair-spoke-top-cord-16in-250-white-100-black-arms-paddle-TBK.jpg 16" Sinclair Spoke Top Pendant, 250-Porcelain White, Cup in 100-Black, With Arms, Paddle Switch, TBK-Black Cotton Twist Cord, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 64866
65031 64989 product 0 77264 A 6 D 0 0 sinclair-cord-LED-16in-765-delphite-CMG.jpg 16" Sinclair LED, 765-Porcelain Delphite, CMG-Grey Cloth Cord 1000 1000 77264
50319 64989 product 0 62552 A 7 D 0 0 sinclair-cord-LED-10in-400-barn-red-CSB.jpg 10" Sinclair LED, 400-Barn Red, CSB-Black Cloth Cord 1000 1000 62552
52650 65096 product 0 64883 A 7 D 0 0 sinclair-spoke-top-cord-10in-400-barn-red-paddle-TRD.jpg 10" Sinclair Spoke Top Pendant, 400-Barn Red, Paddle Switch, TRD-Red Cotton Twist Cord, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 64883
68020 64847 product 0 80253 A 7 C 0 0 IMG_029-residential-interior-lighting-kitchen-island-Sinclair-Stem-Loop-Pendant-14in-250-White-Putty-Cotton-Twist-24in-Stem-Nickel-No-Switch.jpg 14" Sinclair Stem & Loop, 250-White Putty, Cotton Twist, 24" Stem, Nickel, No Switch | Photo Courtesy of Ron DiMauro Architecture 4468 4027 80253
37756 64747 product 0 49989 A 8 D 0 0 Dominion-Cord-14in-500-buttery-yellow-CSBG-CGG-FST-100-black-black-gold.jpg 14" Dominion, 500-Buttery Yellow, CGG-Standard Cast Guard, 100-Black, FST-Frosted Glass, CSBG-Black & Gold Cloth Cord 1000 1000 49989
51392 64989 product 0 63625 A 8 C 0 0 Chook-11.jpg 16” Sinclair LED, Exterior: 250-White, Interior: 8520-Graphite, CSBW-Black & White Cloth, Dome Lens, 1250 Lumens, 2700k Color Temp | Photo Courtesy of Chook Chicken and Jason Holschuh Photography 4291 6437 63625
52641 65096 product 0 64874 A 8 C 0 0 Barn_Light_Benjamin_Industrial_Pendant_995_Natural_Raw_Copper_Ben_Carmichael.jpg (3) 10" Sinclair Spoke Top Pendant Light, 995-Natural Raw Copper, Cup in 100-Black, No Arms, TBK-Black Cotton Twist Cord | Photo Courtesy of Ben Carmichael Photography 1500 1000 64874
63843 64847 product 0 76076 A 8 C 0 0 IMG_5730-residential-interior-lighting-kitchen-island-Sinclair-Stem-and-Loop-Pendant-12in-106-Matte-Black-Black-Cotton-Twist-Brass-Socket-24in-stem.jpg Sinclair Stem & Loop Pendant, 12" Shade, 24" Stem, 106-Matte Black, Black Cotton Twist, BS-Brass Knob with No Switch | Photo Courtesy of Homeowner 2951 3933 76076
37753 64747 product 0 49986 A 9 D 0 0 Dominion-Cord-16in-705-navy-CSR-red-cloth.jpg 16" Dominion, 705-Navy, CSR-Red Cloth Cord 1000 1000 49986
51393 64989 product 0 63626 A 9 C 0 0 Chook-2.jpg (4) 16” Sinclair LED, Exterior: 250-White, Interior: 850-Graphite, CSBW-Black & White Cloth, Dome Lens, 1250 Lumens, 2700k Color Temp | Photo Courtesy of Chook Chicken and Jason Holschuh Photography 4336 6504 63626
63844 64847 product 0 76077 A 9 C 0 0 IMG_5727-residential-interior-lighting-kitchen-island-Sinclair-Stem-and-Loop-Pendant-12in-106-Matte-Black-Black-Cotton-Twist-Brass-Socket-24in-stem.jpg Sinclair Stem & Loop Pendant, 12" Shade, 24" Stem, 106-Matte Black, Black Cotton Twist, BS-Brass Knob with No Switch | Photo Courtesy of Homeowner 2117 3381 76077
72563 65096 product 0 84796 A 9 C 0 0 439247864-commercial-interior-retail-clothing-store-sinclair-cord-pendant-320-fern-green.jpg 10" Sinclair Spoke Top, 320-Fern Green, SBK-Standard Black Cord 4200 3065 84796
37757 64747 product 0 49990 A 10 D 0 0 Dominion-Cord-12in-800-industrial-grey-TWH-twisted-white.jpg 12" Dominion, 800-Industrial Grey, TWH-White Cotton Twist Cord 1000 1000 49990
51394 64989 product 0 63627 A 10 C 0 0 Chook-8.jpg (4) 16” Sinclair LED, Exterior: 250-White, Interior: 850-Graphite, CSBW-Black & White Cloth, Dome Lens, 1250 Lumens, 2700k Color Temp | Photo Courtesy of Chook Chicken and Jason Holschuh Photography 6673 4171 63627
62358 65096 product 0 74591 A 10 C 0 0 Sinclair_Spoke_Top_Pendant_10in_100-Black_SBK_Arms_No_Switch_100-Black.jpg 10" Sinclair Spoke Top Pendant Light, 100-Black, Black Socket with No Switch, SBK-Standard Black Cord | Photo Courtesy of Homeowner 1500 1376 74591
68691 64989 product 0 80924 A 10 C 0 0 20230826_164523-residential-interior-lighting-kitchen-island-sink-Sinclair-LED-Pendant-16in-10in-106-Matte-Black-Black-White-Cloth-Cord-CSBW-Dom.jpg 16" & 10" Sinclair LED, 106-Matte Black, Dome Lens, CSBW-Black & White Cloth Cord | Photo Courtesy of Homeowner 1500 1146 80924
68692 64989 product 0 80925 A 10 C 0 0 20230826_100815-residential-interior-lighting-kitchen-island-sink-Sinclair-LED-Pendant-16in-10in-106-Matte-Black-Black-White-Cloth-Cord-CSBW-Dom.jpg 16" & 10" Sinclair LED, 106-Matte Black, Dome Lens, CSBW-Black & White Cloth Cord | Photo Courtesy of Homeowner 1500 1099 80925
68693 64989 product 0 80926 A 10 C 0 0 20230826_100652-residential-interior-lighting-kitchen-island-sink-Sinclair-LED-Pendant-16in-10in-106-Matte-Black-Black-White-Cloth-Cord-CSBW-Dom.jpg 16" & 10" Sinclair LED, 106-Matte Black, Dome Lens, CSBW-Black & White Cloth Cord | Photo Courtesy of Homeowner 1500 1125 80926
52642 65096 product 0 64875 A 11 C 0 0 Barn_Light_Benjamin_Industrial_Pendant_995-Raw-Copper.jpg (3) 10" Sinclair Spoke Top Pendant Light, 995-Natural Raw Copper, Cup in 100-Black, No Arms, TBK-Black Cotton Twist Cord | Photo Courtesy of Ben Carmichael Photography 1500 965 64875
62362 64747 product 0 74595 A 11 C 0 0 16in-dominion-355-jadite-swh.jpg 16" Dominion, 311-Jadite, SWH-Standard White Cord | Photo Courtesy of @stevecoz16 on Instagram 1440 1440 74595
54137 65096 product 0 66370 A 12 C 0 0 residential-exterior-porch-swing-sinclair-cord-pendant-250-porcelain-white-high-res.jpg 10” Sinclair Spoke Top Pendant Light, 250-Porcelain White, SBK-Standard Black Cord, No Arms, No Switch | Photo Courtesy of Mary and Randy Coleman 1500 2250 66370
61870 64747 product 0 74103 A 12 C 0 0 Dominion_Pendant_Light_-_765-Porcelain_Delphite_Barn_Light_Electric_-_Kitchen_Lighting.jpg 16” Dominion, 765-Delphite Blue, CSBW-Black & White Cloth | Photo Courtesy of Homeowner 1500 2000 74103
65381 64847 product 0 77614 A 12 C 0 0 image__8_-residential-interior-lighting-kitchen-island-Sinclair-Stem-Loop-Pendant-14in-250-White-Putty-Cotton-Twist-12in-stem-Nickel-Knob-Switch.jpg 14" Sinclair Stem & Loop Pendant, 250-White, Putty Cotton Twist, 12" Stem, Nickel Knob Switch | Photo Courtesy of Homeowner 2016 1512 77614
52643 65096 product 0 64876 A 13 C 0 0 industrial_pendant_lighting-768x512__1_.jpg 16" Sinclair Spoke Top Pendant Light, 100-Black, SWH-Standard White Cord 768 512 64876
65382 64847 product 0 77615 A 13 C 0 0 image__9_-residential-interior-lighting-kitchen-island-Sinclair-Stem-Loop-Pendant-14in-250-White-Putty-Cotton-Twist-12in-stem-Nickel-Knob-Switch.jpg 14" Sinclair Stem & Loop Pendant, 250-White, Putty Cotton Twist, 12" Stem, Nickel Knob Switch | Photo Courtesy of Homeowner 1512 2016 77615
52632 65096 product 0 64865 A 14 C 0 0 sinclair-spoke-top-pendant-705-navy.jpg 10" Sinclair Spoke Top Pendant Light, 705-Navy, Cup with Arms, SWH-Standard White Cord 1000 700 64865
65078 64747 product 0 77311 A 14 C 0 0 residential-interior-kitchen-light-dominion-pendant-16in-705-navy-red-cotton-twist-wood-walls_ozxt-ij.jpg 16" Dominion, 705-Navy, Red Cotton Twist | Photo Courtesy of Homeowner 1500 1809 77311
65383 64847 product 0 77616 A 14 C 0 0 image__3_-residential-interior-lighting-kitchen-island-Sinclair-Stem-Loop-Pendant-14in-250-White-Putty-Cotton-Twist-12in-stem-Nickel-Knob-Switch.jpg 14" Sinclair Stem & Loop Pendant, 250-White, Putty Cotton Twist, 12" Stem, Nickel Knob Switch | Photo Courtesy of Homeowner 1512 2016 77616
52644 65096 product 0 64877 A 15 C 0 0 Benjamin_Industrial_Pendant_Kassandra_Dekoning_Insetting.jpg 10” Sinclair Spoke Top Pendant Light, 100-Black, SBK-Standard Back Cord | Photo Courtesy of Kassandra Dekoning @kassandradekoning 777 960 64877
65079 64747 product 0 77312 A 15 C 0 0 residential-interior-kitchen-light-dominion-pendant-16in-705-navy-red-cotton-twist-wood-walls_m24m-my.jpg 16" Dominion, 705-Navy, Red Cotton Twist | Photo Courtesy of Homeowner 1500 2001 77312
67571 64847 product 0 79804 A 15 C 0 0 0154-residential-interior-lighting-laundry-room-on-Sinclair-Stem-and-Loop-Pendant-10in-150-Black-24in-stem-Nickel-Socket-Knob-Switch-Black-Cotton-Twist-Cord.jpg 10" Sinclair Stem & Loop Pendant, 150-Black, 24" Stem, Nickel Socket Knob Switch, Black Cotton Twist Cord | Photo Courtesy of Alison Kandler Designs 3797 5132 79804
52645 65096 product 0 64878 A 16 C 0 0 K_L_H___klhcustomhomes_.png 16” Sinclair Spoke Top Pendant Light, 100-Black, Cup with Arms, SBK-Black Cord Hung | Photo Courtesy of KLH Home Design 452 601 64878
65080 64747 product 0 77313 A 16 C 0 0 residential-interior-kitchen-light-dominion-pendant-16in-705-navy-red-cotton-twist-wood-walls.jpg 16" Dominion, 705-Navy, Red Cotton Twist | Photo Courtesy of Homeowner 1500 2000 77313
52653 65096 product 0 64886 A 17 C 0 0 kitchen_pendant_lighting-576x768.jpg 14" Sinclair Spoke Top Pendant Light, 250-Porcelain White, TPT-Putty Cotton Twist Cord | Photo Courtesy of Homeowners 576 768 64886
65002 65096 product 0 77235 A 18 C 0 0 image_6483441__2_-residential-exterior-lighting-porch-dog-Sinclair-Spoke-Top-Pendant-12in-100-Black-SBK-No-Arms.JPG 12" Sinclair Spoke Top Pendant Light, 100-Black, Standard Black Cord, No Arm | Photo Courtesy of Homeowner 2461 3558 77235
65274 65096 product 0 77507 A 19 C 0 0 IMG_4466-residential-interior-lighting-kitchen-sink-counter-Sinclair-Spoke-Top-Pendant-10in-765-Delphite-Blue-TBW-Cup-Switch-975-Galvanized.jpg 10" Sinclair Spoke Top Pendant, 765-Delphite Blue, TBW-Cup Switch, 975-Galvanized | Photo Courtesy of Homeowner 1879 2332 77507
65275 65096 product 0 77508 A 20 C 0 0 IMG_4463-residential-interior-lighting-kitchen-sink-counter-Sinclair-Spoke-Top-Pendant-10in-765-Delphite-Blue-TBW-Cup-Switch-975-Galvanized.jpg 10" Sinclair Spoke Top Pendant, 765-Delphite Blue, TBW-Cup Switch, 975-Galvanized | Photo Courtesy of Homeowner 4013 2553 77508
65703 65096 product 0 77936 A 21 D 0 0 image0-residential-interior-lighting-kitchen-island-Sinclair-Spoke-Top-Pendant-10in-790-Lavender-Grey-Cloth-No-Arms-No-Switch-Cup-975-Galvanized.jpeg 10" Sinclair Spoke Top Pendant Light, 790-Lavendar, Grey Cloth, No Arms, No Switch Cup, 975-Galvanized | Customer Submission 3005 3652 77936