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 (65099, 62226, 64847, 64771) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00113

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 (65099,62226,64847,64771)"
        }
      }
    },
    "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
48108 62226 product 0 60341 A 0 D 0 0 Gladstone_Jadite_RedWhite_Chevron.jpg 6" Gladstone, 355-Porcelain Jadite, Nickel Socket with Knob Switch, CRZ-Red Chevron Cord 600 600 60341
53568 65099 product 0 65801 A 0 D 0 0 conoco-industrial-socket-cord-15in-500-buttery-yellow-CSBG-100-black-socket-no-switch.jpg 15" Conoco Industrial Pendant, 500-Buttery Yellow, US-Black Socket with No Switch, CSBG-Black & Gold Cloth Cord, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 65801
65020 64771 product 0 77253 A 0 D 0 0 sinclair-cord-10in-400-barn-red-CSB.jpg 10" Sinclair, 400-Barn Red, CSB-Black Cloth Cord, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 77253
29930 62226 product 0 42153 A 1 D 0 0 getty-copper-pendant-paddle-key-large.jpg 10" Gladstone, 995-Natural Raw Copper, Nickel Socket with Paddle Switch, TBW-Black & White Twist Cord 900 900 42153
53561 65099 product 0 65794 A 1 D 0 0 conoco-industrial-socket-cord-12in-100-black-CSBG.jpg 12" Conoco Industrial Pendant, 100-Black, BP-Brass Socket with Paddle Switch, CSBG-Black & Gold Cloth Cord, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 65794
20686 62226 product 0 32515 A 2 D 0 0 Getty_White_White_Cloth_Cord.jpg 8" Gladstone, 200-White, Brass Socket with Knob Switch, SWH-Standard White Cord 600 600 32515
53560 65099 product 0 65793 A 2 D 0 0 conoco-industrial-socket-cord-10in-250-white-TBk100-black-paddle.jpg 10" Conoco Industrial Pendant, 250-White, UP-Black Socket with Paddle Switch, TBK-Black Cotton Twist Cord, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 65793
65024 64771 product 0 77257 A 2 D 0 0 sinclair-cord-14in-307-emerald-green-CSBB.jpg 14" Sinclair, 307-Emerald Green, Wire Cage, 975-Galvanized, CSBB-Black & Brown Cloth Cord 1000 1000 77257
20687 62226 product 0 32516 A 3 D 0 0 Getty_Black_White_Cloth_Cord-paddle-switch.jpg 6" Gladstone, 100-Black, Brass Socket with Black Paddle, CSW-White Cloth Cord, Nostalgic Edison Bulb 600 600 32516
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
53572 65099 product 0 65805 A 3 D 0 0 conoco-industrial-socket-cord-15in-480-blush-pink-CSBP-brass-socket-no-switch.jpg 15" Conoco Industrial Pendant, 480-Blush Pink, BS-Brass Socket with No Switch, CSBP-Black & Pink Cloth Cord, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 65805
65023 64771 product 0 77256 A 3 D 0 0 sinclair-cord-14in-100-black-TRD.jpg 14" Sinclair, 100-Black, TRD-Red Cotton Twist Cord, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 77256
29928 62226 product 0 42151 A 4 D 0 0 getty-brass-pendant-black-large.jpg 10" Gladstone, 997-Natural Raw Brass, Black Socket with No Switch, CSBW-Black & White Cloth Cord 900 900 42151
53577 65099 product 0 65810 A 4 D 0 0 conoco-industrial-socket-cord-12in-307-emerald-green-CSBB-brass-knob.jpg 12" Conoco Industrial Pendant, 307-Emerald Green, BK-Brass Socket with Knob Switch, CSBB-Black & Brown Cloth Cord, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 65810
65021 64771 product 0 77254 A 4 D 0 0 sinclair-cord-12in-480-blush-pink-CSGW.jpg 12" Sinclair, 480-Blush Pink, CSGW-Gold & White Cloth Cord, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 77254
20649 62226 product 0 32478 A 5 D 0 0 Getty_Navy_Red_White_Cord.jpg 10" Gladstone, 705-Navy, Nickel Socket with No Switch, CSRW-Red & White Cloth Cord 600 600 32478
53563 65099 product 0 65796 A 5 D 0 0 conoco-industrial-socket-cord-15in-800-industrial-grey-nickel-socket-no-switch-CRD.jpg 15" Conoco Industrial Pendant, 800-Industrial Grey, NS-Nickel Socket with No Switch, CSR-Red Cloth Cord, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 65796
65025 64771 product 0 77258 A 5 D 0 0 sinclair-cord-14in-975-galvanized-CBP.jpg 14" Sinclair, 975-Galvanized, CSBP-Black & Pink Cloth Cord, Nostalgic Edison-Style 1910 Era 40 Watt Light Bulb 1000 1000 77258
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
48110 62226 product 0 60343 A 6 D 0 0 Gladstone_Red_White_Cloth_Cord.jpg 8" Gladstone, 455-Porcelain Cherry Red, Brass Socket with Knob Switch, SWH-Standard White Cord 600 600 60343
53562 65099 product 0 65795 A 6 D 0 0 conoco-industrial-socket-cord-12in-390-teal-CSGW-nickel-socket-paddle.jpg 12" Conoco Industrial Pendant, 390-Teal, NP-Nickel Socket with Paddle Switch, CSGW-Gold & White Cloth Cord, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 65795
65022 64771 product 0 77255 A 6 D 0 0 sinclair-cord-12in-500-buttery-yellow-TWH.jpg 12" Sinclair, 500-Buttery Yellow, TWH-White Cotton Twist Cord, Nostalgic Edison-Style 1910 Era 40 Watt Light Bulb 1000 1000 77255
29929 62226 product 0 42152 A 7 D 0 0 getty-copper-pendant-black-small.jpg 6" Gladstone, 995-Natural Raw Copper, Black Socket with No Switch, SBK-Standard Black Cord 900 900 42152
65026 64771 product 0 77259 A 7 D 0 0 sinclair-cord-16in-765-delphite-CMG.jpg 16" Sinclair, 765-Porcelain Delphite, CMG-Grey Cloth Cord, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 77259
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
20646 62226 product 0 32475 A 8 D 0 0 Getty_White_Black_White_Cord.jpg 8" Gladstone, 200-White, Nickel Socket with No Switch, CSBW-Black & White Cloth Cord 600 600 32475
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
66993 64771 product 0 79226 A 8 C 0 0 BarnLight_DGHV1095-commercial-interior-lighting-restaurant-Sinclair-Draftsman-Pendant-10in-SBK-110-PTM-Porcelain-Black.jpg 10" Sinclair, Standard Black Cord, 110 Paint to Match Porcelain Black 7360 4912 79226
48111 62226 product 0 60344 A 9 D 0 0 Gladstone_Vintage_Green_Standard_White_Cord_copy.jpg 8" Gladstone, 350-Porcelain Vintage Green, Brass Socket with Knob Switch, SWH-Standard White Cord 600 600 60344
61361 64771 product 0 73594 A 9 C 0 0 Sinclair_Draftsman_Pendant_Light_-_250_Porcelain_White_Barn_Light_Electric_-_Interior_Pendant_Lighting.jpg 14" shade, 250-White, CSBW-Black & White Cloth Cord | Photo Courtesy of Proper Wit Design 1500 1000 73594
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
66442 65099 product 0 78675 A 9 C 0 0 IMG_1236-residential-interior-lighting-on-kitchen-sink-Conoco-Industrial-Pendant-10in-150-Black-SBK-Black-Socket-No-Switch-Elva-LED-Tala-Lamp.JPG 10" Conoco Industrial Pendant, 150-Black, Standard Black Cord, Black Socket, No Switch, Elva LED Tala Lamp | Customer Submission 3024 4032 78675
20648 62226 product 0 32477 A 10 D 0 0 Getty_Galvenized_RedWhite_Chevron.jpg 6" Gladstone, 975-Galvanized, Nickel Socket with Knob Switch, CRZ-Red Chevron Cord 600 600 32477
38762 64771 product 0 50995 A 10 C 0 0 skylark_shallow_bowl_pendant_raw_copper_10in_TBW_whitemount3.jpg (4) 10" Sinclair, 995-Natural Raw Copper, TBW-Black & White Chevron Twist Cord, 200-White Canopy Finish | Photo Courtesy of Harper & Hicks 1500 1058 50995
38763 64771 product 0 50996 A 11 C 0 0 skylark_shallow_bowl_pendant_raw_copper_10in_TBW_whitemount4.jpg (4) 10" Sinclair, 995-Natural Raw Copper, TBW-Black & White Chevron Twist Cord, 200-White Canopy Finish | Photo Courtesy of Harper & Hicks 1500 1087 50996
48109 62226 product 0 60342 A 11 D 0 0 Gladstone_White_RedWhite_Cloth.jpg 6" Gladstone, 250-Porcelain Jadite, Nickel Socket with No Switch, CSRW-Red & White Cloth Cord 600 600 60342
47940 62226 product 0 60173 A 12 C 0 0 gladstone_pendant_705_navy.jpg 10” Gladstone, 705-Navy, Nickel Socket with Knob Switch, CSW-White Cloth Cord | As seen in Country Living magazine, December 2019. Photography by Brian Woodcock. 1500 1915 60173
61362 64771 product 0 73595 A 12 C 0 0 Sinclair_Draftsman_Pendant_Light_-_Barn_Light_Electric_-_Retail_Lighting.jpg 14" shade, 250-White, CSBW-Black & White Cloth Cord | Photo Courtesy of Proper Wit Design 1005 1005 73595
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
38766 64771 product 0 50999 A 13 C 0 0 coco-and-kelly-sinclair-draftsmans.jpg 10" Sinclair, 250-Porcelain White | Featured on Coco + Kelly blog, photo courtesy of Belathée 600 850 50999
52349 62226 product 0 64582 A 13 C 0 0 gladstone-pendant-white-brass-socket.png 10” Gladstone, 200-White, BS-Brass Socket with No Switch, CSW-White Cloth Cord | Photo Courtesy of Micah at The Old Try @theoldtry 1500 1000 64582
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
47943 62226 product 0 60176 A 14 C 0 0 countrylivingkitchen_705-Navy-SWH.jpg (2) 10” Gladstone, 705-Navy, Nickel Socket with Knob Switch, CSW-White Cloth Cord | As seen in Country Living magazine, December 2019. Photography by Brian Woodcock. 1500 2095 60176
48371 64771 product 0 60604 A 14 C 0 0 ceiling_pendant_lighting__1024x1024_.jpg 14" shade, 400-Barn Red, TRW-Red & White Twist Cord | Photo Courtesy of Homeowner 1024 1024 60604
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
47941 62226 product 0 60174 A 15 C 0 0 gladstone-pendant-705-navy.jpg 10” Gladstone, 705-Navy, Nickel Socket with Knob Switch, CSW-White Cloth Cord | As seen in Country Living magazine, December 2019. Photography by Brian Woodcock. 1500 2116 60174
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
55633 62226 product 0 67866 A 16 C 0 0 gladstone_pendant_8in_navy_swk_brass_socket_knob_switch.jpg 8” Gladstone, 705-Navy, Brass Socket with Knob, Standard White Cord | Photo Courtesy of Tammara Stroud Interior Design 1500 1393 67866
61710 62226 product 0 73943 A 17 C 0 0 Gladstone_Pendant_Light_-_Barn_Light_Electric_-_Hallway_lighting.jpg 10” Gladstone, 480-Blush Pink, Black Socket with No Switch, CSBW-Black & White Cloth Cord | Photo Courtesy of Rangeley Building and Remodeling & Jeff Roberts Imaging 1000 1500 73943
60282 62226 product 0 72515 A 18 C 0 0 Gladstone_Pendant_Light_-_Barn_Light_Electric_-_Kitchen_Island_Lighting.jpeg 10” Gladstone, 705-Navy, Brass Socket with No Switch, Standard Black Cord | Photo Courtesy of The Lighting Group, Sechrist Design, Brent Smith Photography and Ethos Community in Kent, Washington 1800 1201 72515
47942 62226 product 0 60175 A 19 C 0 0 CountryLivingKitchen-gladstone-navy-nickel-knob.jpg 10” Gladstone, 705-Navy, Nickel Socket with Knob Switch, CSW-White Cloth Cord | As seen in Country Living magazine, December 2019. Photography by Brian Woodcock. 1500 1881 60175
55632 62226 product 0 67865 A 20 C 0 0 gladstone_pendant_8in_navy_swh_brass_socket_knob_switch3.jpg 8” Gladstone, 705-Navy, Nickel Socket with Knob, Standard White Cord | Photo Courtesy of Tammara Stroud Interior Design 1500 986 67865
60281 62226 product 0 72514 A 21 C 0 0 Gladstone_Pendant_Light_-_Barn_Light_Electric_-_Modern_Kitchen_Island_Lighting.jpeg 10” Gladstone, 705-Navy, Brass Socket with No Switch, Standard Black Cord | Photo Courtesy of The Lighting Group, Sechrist Design, Brent Smith Photography and Ethos Community in Kent, Washington 1800 1201 72514
52348 62226 product 0 64581 A 22 C 0 0 old_try.png 10” Gladstone, 200-White, BS-Brass Socket with No Switch, CSW-White Cloth Cord | Photo Courtesy of Micah at The Old Try @theoldtry 1421 1555 64581
52552 62226 product 0 64785 A 23 C 0 0 Image.jpeg 8” Gladstone, 705-Navy, Nickel Socket with Knob Switch, TBK-Black Cotton Twist | Photo Courtesy of Kim from @shiplapandshells 1080 1080 64785
48113 62226 product 0 60346 A 24 C 0 0 Screen_Shot_2019-11-20_at_4.31.05_PM.png 6" Gladstone, 250-Porcelain White, Nickel Socket with Black Paddle Switch, TRW-Red & White Twist Cord 698 498 60346
60815 62226 product 0 73048 A 25 C 0 0 Gladstone_Pendant_Light_-_Barn_Light_Electric_-_Kids_Playroom_Lighting.jpg 10” Gladstone, 300-Dark Green, Black Socket with No Switch, CSW-White Cloth Cord | Photo Courtesy of Sherwood Kypreos Design Studio 750 500 73048
48112 62226 product 0 60345 A 26 C 0 0 small-gladstone-graphite.jpg 6" Gladstone, 850-Porcelain Graphite, Nickel Socket with Knob Switch, SWH-Standard White Cord 450 700 60345
68371 62226 product 0 80604 A 26 C 0 0 residential-interior-lighting-Gladstone-Pendant-10in-200-White-CSW-White-Coth-Nickel-Socket-Knob-Switch.jpg 10" Gladstone, 200-White, Nickel Socket with Knob Switch, CSW-White Cloth Cord | Photo Courtesy of Customer 1500 2000 80604