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 (61694, 61692, 64696, 64685) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00121

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": 70,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (61694,61692,64696,64685)"
        }
      }
    },
    "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
17246 61692 product 0 28813 A 0 D 0 0 chateau-cord-975-galvanized-CSBG.jpg Chateau Pendant Light, 975-Galvanized, CSGW-Gold & White Cloth Cord 1000 1000 28813
33697 64685 product 0 45930 A 0 D 0 0 original-stem-18in-galvanized-975.jpg 18" The Original™ Stem Mount, 975-Galvanized, Hang Straight Canopy 1000 1000 45930
35839 64696 product 0 48072 A 0 D 0 0 union-stem-10in-barn-red.jpg 10" Union, 400-Barn Red 1000 1000 48072
64076 61694 product 0 76309 A 0 D 0 0 canal-stem-490-magenta-100-black.jpg Canal Stem Mount, 490-Magenta, Mounting in 100-Black, Heavy Duty Canopy 1000 1000 76309
17247 61692 product 0 28814 A 1 D 0 0 chateau-cord-100-black-CSBG.jpg Chateau Pendant Light, 100-Black, CSBG-Black & Gold Cloth Cord 1000 1000 28814
35337 64685 product 0 47570 A 1 D 0 0 original-stem-14in-raw-copper-995.jpg 14" The Original™ Stem Mount, 995-Natural Raw Copper 1000 1000 47570
63543 64696 product 0 75776 A 1 D 0 0 union-LED-stem-16in-975-galvanized-WC-HSC_jf1e-aj.jpg 16" Union, 975-Galvanized, Wire Cage, Hang Straight Canopy 1000 1000 75776
64078 61694 product 0 76311 A 1 D 0 0 canal-stem-705-navy-975-galvanized.jpg Canal Stem Mount, 705-Navy, Mounting in 975-Galvanized 1000 1000 76311
17242 61694 product 0 28809 A 2 D 0 0 canal-stem-100-black.jpg Canal Stem Mount, 100-Black 1000 1000 28809
35841 64696 product 0 48074 A 2 D 0 0 union-stem-16in-997-raw-brass-200-white.jpg 16" Union, 997-Natural Raw Brass, Mounting in 200-White 1000 1000 48074
64643 61692 product 0 76876 A 2 D 0 0 chateau-cord-480-blush-pink-CSBP.jpg Chateau Pendant Light, 480-Blush Pink, CSBP-Black & Pink Cloth Cord 1000 1000 76876
17244 61694 product 0 28811 A 3 D 0 0 canal-stem-400-barn-red.jpg Canal Stem Mount, 400-Barn Red 1000 1000 28811
17249 61692 product 0 28816 A 3 D 0 0 chateau-cord-400-barn-red-CRZ.jpg Chateau Pendant Light, 400-Barn Red, CRZ-Red Chevron Cord 1000 1000 28816
33696 64685 product 0 45929 A 3 D 0 0 original-stem-16in-200-white-mint-370-acrylic-diffuser.jpg 16" The Original™ Stem Mount, 200-White, ACR-Acrylic Diffuser, 370-Mint 1000 1000 45929
35846 64696 product 0 48079 A 3 D 0 0 union-stem-14in-100-black.jpg 14" Union, 100-Black 1000 1000 48079
17248 61692 product 0 28815 A 4 D 0 0 chateau-cord-200-white-CSW.jpg Chateau Pendant Light, 200-White, CSW-White Cloth Cord 1000 1000 28815
34203 64685 product 0 46436 A 4 D 0 0 original-stem-28in-Royal-Blue.jpg 28" The Original™ Stem Mount, 700-Royal Blue 1000 1000 46436
35838 64696 product 0 48071 A 4 D 0 0 union-LED-stem-14in-705-navy-975-galvanized-CGG-FST.jpg 14" Union, 705-Navy, CGG-Standard Cast Guard, 975-Galvanized, FST-Frosted Glass, Mounting in 975-Galvanized 1000 1000 48071
64077 61694 product 0 76310 A 4 D 0 0 canal-stem-615-oil-rubbed-bronze.jpg Canal Stem Mount, 615-Oil-Rubbed Bronze 1000 1000 76310
17243 61694 product 0 28810 A 5 D 0 0 canal-stem-390-teal-980-brushed-aluminum.jpg Canal Stem Mount, 390-Teal, Mounting in 980-Brushed Aluminum 1000 1000 28810
35850 64696 product 0 48083 A 5 D 0 0 union-stem-16in-200-white.jpg 16" Union, 200-White 1000 1000 48083
64645 61692 product 0 76878 A 5 D 0 0 chateau-cord-715-delphite-blue-CSW.jpg Chateau Pendant Light, 715-Delphite Blue, CSW-White Cloth Cord 1000 1000 76878
35840 64696 product 0 48073 A 6 D 0 0 union-stem-12in-307-emerald-green.jpg 12" Union, 307-Emerald Green 1000 1000 48073
61561 64685 product 0 73794 A 6 D 0 0 original-stem-QUICK-SHIP-100-black-wire-cage_xj8t-dk.jpg 16" The Original™ Stem Mount, 100-Black, Wire Cage 1000 1000 73794
61951 61694 product 0 74184 A 6 C 0 0 Canal_Stem_Mount_Pendant_-600_Bronze_Barn_Light_Electric_-_Outdoor_Walkway_Lighting.jpg Canal Stem Mount Pendant, 600-Bronze, Mounting in 975-Galvanized, 12in Stem | Photo Courtesy of Patti Ledbetter 1500 1125 74184
64644 61692 product 0 76877 A 6 D 0 0 chateau-cord-500-buttery-yellow.jpg Chateau Pendant Light, 500-Buttery Yellow, SBK-Standard Black Cord 1000 1000 76877
33695 64685 product 0 45928 A 7 D 0 0 original-stem-12in-raw-brass-995-galvanized-975-CGG.jpg 12" The Original™ Stem Mount, 997-Natural Raw Brass, CGG-Standard Cast Guard, 975-Galvanized, RIB-Ribbed Glass, Mounting in 975-Galvanized 1000 1000 45928
35851 64696 product 0 48084 A 7 C 0 0 Union_Stem_Mount_Pendant_Light_-_995_Natural_Raw_Copper_Barn_Light_Electric_-_Restaurant_and_Bar_Lighting.jpg 14" Union, 995-Natural Raw Copper, 36" Stem, 100-Black, Hang Straight Canopy | Photo Courtesy of Bomba Restaurant 1500 994 48084
57168 61692 product 0 69401 A 7 C 1 1781 chateau-pendant-teal.jpg Chateau Cord Hung Pendant, 390-Teal, SBK-Standard Black Cord | Photo Courtesy of Jean Allsopp and Birmingham Home and Garden 1500 2454 69401
61952 61694 product 0 74185 A 7 C 0 0 Canal_Stem_Mount_Pendant_Light_-_600_Bronze_Barn_Light_Electric_-_Exterior_Lighting.jpg Canal Stem Mount Pendant, 600-Bronze, Mounting in 975-Galvanized, 12in Stem | Photo Courtesy of Patti Ledbetter 1500 1717 74185
33700 64685 product 0 45933 A 8 D 0 0 original-stem-24in-705-navy-brushed-aluminum.jpg 24" The Original™ Stem Mount, 705-Navy, Mounting in 980-Brushed Aluminum 1000 1000 45933
57166 61692 product 0 69399 A 8 C 0 0 Chateau_Cord_Hung_Pendant_-_Barn_Light_Electric_-_Back_Porch_Design_Lighting.jpg Chateau Cord Hung Pendant, 200-White, SBK-Standard Black Cord | Photo Courtesy of Engler Studio Interior Design @englerstudio 2400 1600 69399
61953 61694 product 0 74186 A 8 C 0 0 Canal_Stem_Mount_Pendant_-_600_Bronze_Barn_Light_Electric_-_Entryway_Lighting.jpg Canal Stem Mount Pendant, 600-Bronze, Mounting in 975-Galvanized, 12in Stem | Photo Courtesy of Patti Ledbetter 1500 2000 74186
69137 64696 product 0 81370 A 8 C 0 0 Skillet_Post_Alley-179-commercial-interior-lighting-restaurant-Union-Pendant-14in-495-Sherbet-Orange-SBK.jpg 14" Union, 495-Sherbet Orange | Photo Courtesy of Keith Huckabay Photography 1500 2250 81370
33701 64685 product 0 45934 A 9 D 0 0 original-stem-20in-buttery-yellow-500.jpg 20" The Original™ Stem Mount, 500-Buttery Yellow 1000 1000 45934
37837 64696 product 0 50070 A 9 C 0 0 union_stem_mount_14in_white_18instem_975_galv_wirecage4.jpg (5) 14” Union Stem Mount Lights in 200-White,18” Stem in 975-Galvanized Finish and Hang Straight Canopy. 14” Wire Cage in 975-Galvanized Finish 1500 1751 50070
57167 61692 product 0 69400 A 9 C 0 0 Chateau_Cord_Hung_Pendant_-_Barn_Light_Electric_-_Porch_Decor_Design.jpg Chateau Cord Hung Pendant, 200-White, SBK-Standard Black Cord | Photo Courtesy of Engler Studio Interior Design @englerstudio 2400 1600 69400
61954 61694 product 0 74187 A 9 C 0 0 Canal_Stem_Mount_-_600_Bronze_Barn_Light_Electric_-_Farmhouse_Exterior_Lighting.jpg Canal Stem Mount Pendant, 600-Bronze, Mounting in 975-Galvanized, 12in Stem | Photo Courtesy of Patti Ledbetter 1500 1138 74187
47279 64696 product 0 59512 A 10 C 0 0 The_Inspired_Room_Shiplap_Hallway_-_Jadite_Mint_Green_Barn_Light_Electric_Semi_Flush_Mount.jpg 12” Union, 355-Jadite, 6” Stem | 1/2” Diameter, Hang Straight Canopy | Photo Courtesy of Melissa from The Inspired Room - www.theinspiredroom.net 1500 2250 59512
50711 61692 product 0 62944 A 10 C 0 0 IMG_6253.jpg Chateau Cord Hung Pendant, 400-Barn Red, SBK-Standard Black Cord 3024 4032 62944
61560 64685 product 0 73793 A 10 D 0 0 original-stem-QUICK-SHIP-16in-300-Dark-green.jpg 16" The Original™ Stem Mount, 300-Dark Green 1000 1000 73793
47281 64696 product 0 59514 A 11 C 0 0 Small_Hallway_Makeover_-_Built_In_Bookshelf_and_Archway_-_The_Inspired_Room_Union_Flush_Mount-250_Porcelain_White.jpg 16” Union, 250-White, Flush Mount, Cast Guard & Ribbed Glass, Guard Finish Same as Shade, No Cap | Photo Courtesy of Melissa from The Inspired Room - www.theinspiredroom.net 1500 2250 59514
50712 61692 product 0 62945 A 11 C 0 0 IMG_6252.jpg Chateau Cord Hung Pendant, 400-Barn Red, SBK-Standard Black Cord 3024 4032 62945
69180 61692 product 0 81413 A 11 C 0 0 230907_7506-commercial-interior-lighting-office-hospital-Chateau-Pendant-Light-100-Black-SWH.jpg Chateau Cord Hung Pendant, 100-Black, Standard White Cord | Photo Courtesy of Island Studio Productions 3840 2563 81413
69181 61692 product 0 81414 A 11 C 0 0 230907_7459-commercial-interior-lighting-office-hospital-Chateau-Pendant-Light-100-Black-SWH.jpg Chateau Cord Hung Pendant, 100-Black, Standard White Cord | Photo Courtesy of Island Studio Productions 3840 2563 81414
33718 64685 product 0 45951 A 12 D 0 0 original-stem-28in-emerald-green-raw-brass.jpg 28" The Original™ Stem Mount, 307-Emerald Green, Mounting in 997-Natural Raw Brass, Decorative Canopy & Hex Cover 1000 1000 45951
47280 64696 product 0 59513 A 12 C 0 0 Small_Hallway_with_Curtain_over_Doorway_-_250_Porcelain_White_The_Inspired_Room_copy.jpg 16” Union, 250-White, Flush Mount, Cast Guard & Ribbed Glass, Guard Finish Same as Shade, No Cap | Photo Courtesy of Melissa from The Inspired Room - www.theinspiredroom.net 1500 2000 59513
33709 64685 product 0 45942 A 13 D 0 0 original-stem-16in-undustrial-grey-barn-red-wire-cage.jpg 16" The Original™ Stem Mount, 800-Industrial Grey, Wire Cage, 400-Barn Red, Mounting in 400-Barn Red 1000 1000 45942
37836 64696 product 0 50069 A 13 C 0 0 union_stem_mount_14in_white_18instem_975-galvanized_wirecage2.jpg (5) 14” UnionStem Mount Lights in 250-White Finish. 18” Stem in 975-Galvanized Finish and Hang Straight Canopy. 14” Wire Cage in 975-Galvanized Finish 1500 1536 50069
35854 64696 product 0 48087 A 14 C 0 0 universal_galvanized_stem_mount_light__1_.jpg 14" Union, 975-Galvanized | Photo Courtesy of Brown Eyed Fox 333 500 48087
61555 64685 product 0 73788 A 14 D 0 0 original-stem-24in-black.jpg The Original™ Stem Mount, 100-Black, Heavy Duty Canopy 1000 1000 73788
33711 64685 product 0 45944 A 15 D 0 0 original-stem-14in-navy-705-weathered-brass.jpg 14" The Original™ Stem Mount, 705-Navy, Mounting in 998-Natural Weathered Brass 1000 1000 45944
35852 64696 product 0 48085 A 15 C 0 0 universal-stem-mount-galvanized-east-end-market-resize.jpg 10" Union, 975-Galvanized, 12" Stem | East End Market, Winter Park, FL 600 900 48085
61236 64696 product 0 73469 A 16 C 0 0 Union_Stem_Mount_Pendant_-_Barn_Light_Electric_-_Front_Porch_Lighting.jpeg 14” Union, 390-Teal, 6” Stem | Photo Courtesy of Homeowner 1164 1651 73469
65136 64685 product 0 77369 A 16 C 0 0 SBP84246-commercial-exterior-lighting-retail-store-Original-Stem-Mount-Pendant-16in-715-PTM-Delphite-Blue-24in-stem-Wire-Guard-975-Galvanized-Clear-Glass-Hang-Straight-Canopy.jpg 16" The Original™, 715-Delphite Blue, 24" Stem, Wire Guard, 975-Galvanized, Clear Glass, Hang Straight Canopy | Photo Courtesy of Something Blue Photography 1800 1200 77369
54160 64685 product 0 66393 A 17 C 0 0 original_stem_mount_100_black_18in3.jpg 18” The Original™, 100-Black Finish | Photo Courtesy of Tami Hutter from Infinity Farms 1500 1000 66393
66014 64685 product 0 78247 A 18 C 0 0 barn_light_original_pendant.jpg 14" The Original™, 975-Galvanized, 18" Stem | Photo Courtesy of Our Feathered Farmhouse and Christy Stalnaker Photography 684 1024 78247
36569 64685 product 0 48802 A 19 C 0 0 original_stem_pendant_14in_975_galvanized_6instem_redcage.jpg (3) 14” The Original™, 975-Galvanized Finish, 6” Stem | 1/2” Diameter in 975-Galvanized finish, 14” Wire Cage in 400-Barn Red finish | Photo Courtesy of Halcyon Trade Building and Paul Body 1500 1604 48802
59482 64685 product 0 71715 A 20 C 0 0 The_Original™_Warehouse_Stem_Mount_Pendant_-_105_Textured_Black_Barn_Light_Electric_-_Commercial_Space_Interior_Lighting.jpg 12” The Original™, 105-Textured Black, 18” Stem (Also pictured: The Original™ Warehouse Gooseneck Light) | Photo Courtesy of Camp Kiniya and Ryan Bent Photography 1500 1000 71715
54161 64685 product 0 66394 A 21 C 0 0 original_stem_mount_100_black_18in2.jpg 18” The Original™, 100-Black Finish | Photo Courtesy of Tami Hutter from Infinity Farms 1500 1000 66394
33704 64685 product 0 45937 A 22 C 0 0 barn_pendant_light_exterior-1-567x768.jpg 12" The Original™, 100-Black, 12" Stem | Customer Submission 567 768 45937
54162 64685 product 0 66395 A 23 C 0 0 outdoor_lighting_pendant_lights-768x512.jpeg 18” The Original™, 100-Black Finish | Photo Courtesy of Tami Hutter from Infinity Farms 768 512 66395
60116 64685 product 0 72349 A 24 C 0 0 The_Original™_Warehouse_Stem_Mount_Pendant_-_Barn_Light_Electric_-_Front_Porch_Decor.JPG 16" The Original™, 100-Black, 12” Stem, Standard Canopy | Photo Courtesy of Veronica Wurtzel 795 1060 72349
33703 64685 product 0 45936 A 25 C 0 0 copper_pendant_lighting-768x576.jpg (3) 16" The Original™, 995-Natural Raw Copper, 6" Stems, 100-Black | Photo Courtesy of Iron & Wood 768 576 45936
33702 64685 product 0 45935 A 26 C 0 0 copper_lighting_american_made-576x768.jpg (3) 16" The Original™, 995-Natural Raw Copper, 24" Stem | Photo Courtesy of Luke Dubbeldam of Iron & Wood 576 768 45935
33706 64685 product 0 45939 A 27 C 0 0 Residential_Original_Stem_Mount_Pendant_100_Black_12_in_Shade.jpg 14" The Original™, 100-Black, 18" Stem | Photo Courtesy of Jill Absten Cox Design 1500 1125 45939
33707 64685 product 0 45940 A 28 C 0 0 original_stem_pendant_12in_white_18instem_galvmount3.jpg 12" The Original™, 200-White, 18" Stem, 975-Galvanized | Customer Submission 800 990 45940
33699 64685 product 0 45932 A 29 C 0 0 original-stem-mount-975-galvanized.jpg (6) 16" The Original™, 975-Galvanized | Photo Courtesy of Pinetop Custom Homes 900 600 45932
65137 64685 product 0 77370 A 30 C 0 0 SBP84240-commercial-exterior-lighting-retail-store-Original-Stem-Mount-Pendant-16in-715-PTM-Delphite-Blue-24in-stem-Wire-Guard-975-Galvanized-Clear-Glass-Hang-Straight-Canopy.jpg 16" The Original™, 715-Delphite Blue, 24" Stem, Wire Guard, 975-Galvanized, Clear Glass, Hang Straight Canopy | Photo Courtesy of Something Blue Photography 1200 1800 77370
68217 64685 product 0 80450 A 31 D 0 0 59_South_Street_60_photo-by-Peter_Murdock-residential-interior-lighting-garage-Original-Warehouse-Stem-Mount-28in-100-Black-48in-stem-Wire-Guard.jpg 28" The Original™, 100-Black, 48" Stem, Wire Guard | Photo Courtesy of Peter Murdock 2880 1845 80450