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 (64919, 64821, 64725, 64689) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00136

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": 71,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (64919,64821,64725,64689)"
        }
      }
    },
    "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
37847 64689 product 0 50080 A 0 D 0 0 Chicken-Wire-Basket-Stem-Mount-Galvanized-Barn-Red-Edison-Bulb.jpg Chicken Wire Stem Mount Pendant Light, 975-Galvanized, Mounting in 400-Barn Red, Nostalgic Edison-Style 1890 Era Bulb 1000 1000 50080
47240 64919 product 0 59473 A 0 D 0 0 loma-stem-large-white-black-interior-black-stem.jpg 20" Loma LED, Exterior in 200-White, Interior in 100-Black, Stem in 100-Black 1000 1000 59473
47242 64919 product 0 59475 A 0 D 0 0 loma-stem-small-galvanized.jpg 12" Loma LED, 975-Galvanized | Shown with Edison-Style Bulb 1000 1000 59475
47244 64919 product 0 59477 A 0 D 0 0 loma-stem-medium-mint-galvanized-interior-galvanized-stem.jpg 16" Loma LED, Exterior in 370-Mint, Interior in 975-Galvanized, Stem in 975-Galvanized 1000 1000 59477
47246 64919 product 0 59479 A 0 D 0 0 loma-stem-small-magenta-black.jpg 12" Loma LED, Exterior in 490-Magenta, Interior in 100-Black, Stem in 100-Black | Shown with Edison-Style Bulb 1000 1000 59479
47247 64919 product 0 59480 A 0 D 0 0 loma-stem-medium-chartreuse-black.jpg 16" Loma LED, Exterior in 380-Chartreuse, Interior in 100-Black, Stem in 380-Chartreuse 1000 1000 59480
47248 64919 product 0 59481 A 0 D 0 0 loma-stem-medium-black-watermelon.jpg 16" Loma LED, Exterior in 100-Black, Interior in 470-Watermelon, Stem in 100-Black 1000 1000 59481
47250 64919 product 0 59483 A 0 D 0 0 locke-stem-small-cherry-red_wdl2-ea.jpg 12" Loma LED, 455-Porcelain Cherry Red 1000 1000 59483
47251 64919 product 0 59484 A 0 D 0 0 locke-stem-small-yellow-black-stem_ncya-8g.jpg 12" Loma LED, 550-Porcelain Yellow, Stem in 150-Black 1000 1000 59484
63967 64821 product 0 76200 A 0 D 0 0 Loma-Cord-16in-480-blush-pink-490-magenta-CSW.jpg 16" Loma, Exterior in 480-Blush Pink, Interior in 490-Magenta, CSW-White Cloth Cord 1000 1000 76200
36986 64725 product 0 49219 A 1 D 0 0 wilcox-chain-12in-100-black-SBK-CGG-RIB.jpg 12" Wilcox, 100-Black, CGG-Standard Cast Guard, RIB-Ribbed Glass, SBK-Standard Black Cord 1000 1000 49219
37848 64689 product 0 50081 A 1 D 0 0 Chicken-Wire-Basket-Stem-Mount-Jadite-Edison-Bulb.jpg Chicken Wire Stem Mount Pendant Light, 311-Jadite, Nostalgic Edison-Style 1890 Era Bulb 1000 1000 50081
40757 64821 product 0 52990 A 1 D 0 0 loma-cord-medium-copper-hex-sbk.jpg 16" Loma, 995-Natural Raw Copper, SBK-Standard Black Cord 1000 1000 52990
34159 64689 product 0 46392 A 2 D 0 0 Chicken-Wire-Basket-Stem-Mount-Barn-Red-Edison-Bulb.jpg Chicken Wire Stem Mount Pendant Light, 400-Barn Red, Nostalgic Edison-Style 1890 Era Bulb 1000 1000 46392
40753 64821 product 0 52986 A 2 D 0 0 Loma-Cord-20in-200-white-100-black-CSBW.jpg 20" Loma, 200-White, Interior in 100-Black, CSBW-Black & White Cloth Cord 1000 1000 52986
37846 64689 product 0 50079 A 3 D 0 0 Chicken-Wire-Basket-Stem-Mount-Delphite-Edison-Bulb.jpg Chicken Wire Stem Mount Pendant Light, 715-Delphite Blue, Nostalgic Edison-Style 1890 Era Bulb 1000 1000 50079
40758 64821 product 0 52991 A 3 D 0 0 Loma-Cord-12in-100-black-400-red-CRD.jpg 12" Loma, Exterior in 100-Black, Interior in 400-Barn Red, CRD-Red Cloth Cord 1000 1000 52991
42516 64725 product 0 54749 A 3 D 0 0 wilcox-chain-14in-975-galvanized-400-barn-red-CSBW-black-white-cord-dbw.jpg 14" Wilcox, 975-Galvanized, Mounting in 400-Barn Red, CSBW-Black & White Cloth Cord 1000 1000 54749
34158 64689 product 0 46391 A 4 D 0 0 Chicken-Wire-Basket-Stem-Mount-Bronze-Edison-Bulb.jpg Chicken Wire Stem Mount Pendant Light, 615-Oil-Rubbed Bronze, Nostalgic Edison-Style 1890 Era Bulb 1000 1000 46391
36987 64725 product 0 49220 A 4 D 0 0 wilcox-chain-24in-307-emerald-green-sbk.jpg 24" Wilcox, 307-Emerald Green, SBK-Standard Black Cord 1000 1000 49220
40756 64821 product 0 52989 A 4 D 0 0 Loma-Cord-16in-975-galvanized-705-navy-cmg.jpg 16" Loma, Exterior in 975-Galvanized, Interior in 705-Navy, CMG-Grey Cloth Cord 1000 1000 52989
34160 64689 product 0 46393 A 5 D 0 0 Chicken-Wire-Basket-Stem-Mount-Black-Edison-Bulb.jpg Chicken Wire Stem Mount Pendant Light, 105-Textured Black, Nostalgic Edison-Style 1890 Era Bulb 1000 1000 46393
36991 64725 product 0 49224 A 5 D 0 0 wilcox-chain-10in-997-raw-brass-975-galvanized-CSGW.jpg 10" Wilcox, 997-Natural Raw Brass, Mounting in 975-Galvanized, CSGW-Gold & White Cloth Cord 1000 1000 49224
64866 64821 product 0 77099 A 5 D 0 0 loma-12in-930-aged-brass-exterior-615-oil-rubbed-bronze-interior-csb.jpg 12" Loma, Exterior in 930-Painted Aged Brass, Interior in 615-Oil-Rubbed Bronze, CSB-Black Cloth Cord 1000 1000 77099
55535 64689 product 0 67768 A 6 C 0 0 chicken_wire_stem_pendant_black_18instem.jpg Chicken Wire Stem Mount Pendant Light, 100-Black | Photo Courtesy of Homeowner 1500 2000 67768
62811 64725 product 0 75044 A 6 D 0 0 wilcox-chain-20in-200-black-CSBG-black-gold-cord.jpg 20" Wilcox, 100-Black, Mounting in 975-Galvanized, CSBG-Black & Gold Cloth Cord 1000 1000 75044
71051 64821 product 0 83284 A 6 D 0 0 Loma-Cord-12in-390-teal-CSGW.jpg 12" Loma, 390-Teal, CSGW-Gold & White Cloth Cord 1000 1000 83284
36993 64725 product 0 49226 A 7 D 0 0 wilcox-chain-8in-700-royal-CSUW.jpg 8" Wilcox, 700-Royal Blue, CSUW-Blue & White Cloth Cord 1000 1000 49226
62151 64689 product 0 74384 A 7 C 0 0 Chicken_Wire_Stem_Mount_Pendant_605_Rust_18instem.jpg Chicken Wire Stem Mount Pendant, 605-Rust | Courtesy of Customer 1500 1000 74384
63966 64821 product 0 76199 A 7 D 0 0 Loma-Cord-12in-700-royal-997-raw-brass-CSUW.jpg 12" Loma, Exterior in 700-Royal Blue, Interior in 997-Natural Raw Brass, CSUW-Blue & White Cloth Cord 1000 1000 76199
37850 64689 product 0 50083 A 8 C 0 0 iStock-979585626-chicken-wire-pendant-stem-jadite.jpg Chicken Wire Stem Mount Pendant Light, 311-Jadite, Nostalgic Edison-Style 1890 Era Bulb 1000 1500 50083
63968 64821 product 0 76201 A 8 D 0 0 Loma-Cord-20in-500-buttery-yellow-100-black-CSBG.jpg 20" Loma, Exterior in 500-Buttery Yellow, Interior in 100-Black, CSBG-Black & Gold Cloth Cord 1000 1000 76201
62152 64689 product 0 74385 A 9 C 0 0 Chicken_Wire_Stem_Mount_Pendant_605_Rust_18instem2.jpg Chicken Wire Stem Mount Pendant, 605-Rust | Courtesy of Customer 1500 2250 74385
62815 64725 product 0 75048 A 9 D 0 0 wilcox-chain-20in-750-cobalt-CSUW-blue-white-cord.jpg 20" Wilcox, 715-Cobalt Blue, CSUW-Blue & White Cloth Cord 1000 1000 75048
67704 64821 product 0 79937 A 9 C 0 0 IMG-1994-residential-interior-lighting-kitchen-island-Loma-Pendant-20in-106-Matte-Black-200-White-SBK-Wilcox-Gooseneck-10in-106-Matte-Black-G17arm.jpg 20" Loma Pendant, 106-Matte Black, 200-White, Standard Black Cord | 10" Wilcox Gooseneck 106-Matte Black, G17 Arm | Photo Courtesy of The Maine Spruce 4032 3024 79937
37851 64689 product 0 50084 A 10 C 0 0 iStock-979585648-chicken-wire-pendant.jpg Chicken Wire Stem Mount Pendant Light, 100-Black, Nostalgic Edison-Style 1890 Era Bulb 1483 1000 50084
62812 64725 product 0 75045 A 10 D 0 0 wilcox-chain-24in-400-barn-red-CSB-black-cloth-cord.jpg 24" Wilcox, 400-Barn Red, CSB-Black Cloth Cord 1000 1000 75045
67705 64821 product 0 79938 A 10 C 0 0 IMG-2034-residential-interior-lighting-kitchen-island-Loma-Pendant-20in-106-Matte-Black-200-White-SBK-Wilcox-Gooseneck-10in-106-Matte-Black-G17arm.jpg 20" Loma Pendant, 106-Matte Black, 200-White, Standard Black Cord | Photo Courtesy of The Maine Spruce 2688 3583 79938
36994 64725 product 0 49227 A 11 D 0 0 wilcox-chain-12in-705-Navy-975-galvanized-CSGW.jpg 12" Wilcox, 705-Navy, Mounting in 975-Galvanized, CSGW-Gold & White Cloth Cord 1000 1000 49227
51868 64821 product 0 64101 A 11 C 0 0 Barn_Light_Electric_Loma_Pendant_Light_100-Black_Exterior_and_940-Painted_Aged_Copper_Interior.jpg 20” Shade, 100-Black Exterior Finish, 940-Painted Aged Interior Finish, SBK-Standard Black Cord 1500 1500 64101
63719 64689 product 0 75952 A 11 C 0 0 residential-interior-kitchen-lighting-farmhouse-Chicken-Wire-Stem-Mount-Pendant-311-Jadite-24in-stem-Hang-Straight-Canopy.jpg Chicken Wire Stem Mount Pendant, 311-Jadite, 24" Stem, Hang Straight Canopy 1500 1125 75952
48926 64725 product 0 61159 A 12 C 0 0 wilcox-chain-hung-975-galvanized.jpg 14” Wilcox, 975-Galvanized, Galvanized Chain with SBK-Standard Black Cord | Photo Courtesy of Studio McGee @studiomcgee 1500 2008 61159
60889 64821 product 0 73122 A 12 C 0 0 Loma_Pendant_Light_-_100_Black_Barn_Light_Electric_-_Kitchen_Island_Lighting.jpg 12” Shade, 930-Painted Aged Brass Interior & 100-Black Exterior, SBK-Standard Black Cord (Also pictured: Canal Gooseneck Light) | Photo Courtesy of Ashley Brochu (@themainesprucehouse) 1500 2000 73122
44904 64821 product 0 57137 A 13 C 0 0 Loma_Pendant_-_200_White_Barn_Light_Electric.jpg 16” Shade, 200-White Exterior Finish, 997-Raw Brass Interior Finish, CSGW-Gold & White Cloth Cord 1500 2000 57137
72562 64725 product 0 84795 A 13 C 0 0 3283151-commercial-interior-office-conference-room-meeting-Wilcox-chain-pendant-20in-shade-815-light-grey-standard-white-cord.jpg 20" Wilcox Chain Hung, 815-Light Grey, SWH-Standard White Cord 3558 2400 84795
44342 64725 product 0 56575 A 14 C 0 0 wilcox-chain-hung-blush-pink.jpg 16" Wilcox, 480-Blush Pink, Galvanized Chain with Black & White Cloth Cord 1500 1000 56575
60018 64821 product 0 72251 A 14 C 0 0 Loma_Pendant_Light_-_Barn_Light_Electric_-_Modern_Deep_Bowl_Lighting.JPG 16” Shade, 200-White Exterior Finish, 997-Raw Brass Interior Finish, CSGW-Gold & White Cloth Cord | Photo Courtesy of Lighting Environments 1242 1512 72251
48927 64725 product 0 61160 A 15 C 0 0 wilcox_deep_bowl_chain_hung_pendants_galvanized_hallway_herringbone_floors_shiplap.jpg 14” Wilcox, 975-Galvanized, Galvanized Chain with SBK-Standard Black Cord | Photo Courtesy of Studio McGee @studiomcgee 1500 2250 61160
60270 64821 product 0 72503 A 15 C 0 0 Loma_Pendant_Light_-_200_White_Barn_Light_Electric_-_Laundry_Room_Lighting.jpg 16” Shade, 200-White Exterior & 930-Painted Aged Brass Interior, TBK-Black Cotton Twist | Photo Courtesy of Homeowner, Melissa McCabe 1500 2173 72503
40411 64725 product 0 52644 A 16 C 0 0 wilcox_chain_hung_pendant_20in_teal_1fam-89.jpg 20” Wilcox, 390-Teal, Teal Chain with Black Standard Cord | Design by Regan Baker Design and Photography by Suzanna Scott Photography 1500 1101 52644
40766 64821 product 0 52999 A 16 C 0 0 loma_cord_hung_navy_white_SBK2.jpg 12" Loma, Exterior in 705-Navy, Interior in 200-White, SBK-Standard Black Cord | Courtesy of Cream & Amber 900 1350 52999
56234 64725 product 0 68467 A 17 C 0 0 wilcox_chain_hung_pendant_20in_105_textured_black_CGG_CSBW6.jpg 20” Wilcox, 105-Textured Black | Courtesy of fcStdio and Katrina Wittcamp 1500 2313 68467
59379 64821 product 0 71612 A 17 C 0 0 Loma_Pendant_Light_-_Delphite_Barn_Light_Electric_-_Modern_Dining_Room_Statement_Lighting.jpg 20” Shade, 765-Delphite Blue, SWH-Standard White Cord (Also pictured: Union Pendants, Seaside Goosenecks and Seaside Stem Mounts) | Photo Courtesy of The Maine Sprucehouse 1500 1500 71612
59515 64821 product 0 71748 A 18 C 0 0 Loma_Pendant_-_Barn_Light_Electric_-_Deep_Bowl_Modern_Kitchen_Island_Lighting.JPG 16” Shade, 995-Raw Copper Interior & Exterior, CSBW-Black & White Cloth Cord (Also pictured: Gladstone Wall Sconce) | Photo Courtesy of Building Company Number 7 (@buildingcompanynumber.7) 1206 1179 71748
59572 64725 product 0 71805 A 18 C 0 0 Wilcox_Deep_Bowl_Chain_Pendant_Light_-_Barn_Light_Electric_-_Commercial_Bakery_Lighting.jpg 20” Wilcox, 100-Black, 4 ft of Chain in 100-Black with SBK-Standard Black Cord | Photo Courtesy of Janks Design Group, Breka Bakery, Symmetry Lighting and Christine Pienaar Photography 1024 683 71805
36995 64725 product 0 49228 A 19 C 0 0 wesco-chain-hung-blush-pink-galv-chain-csbw.jpg 16" Wilcox, 480-Blush Pink, Galvanized Chain with Black & White Cloth Cord 900 600 49228
66327 64821 product 0 78560 A 19 C 0 0 Barnlights2-residential-interior-lighting-living-room-Loma-Pendant-16in-200-White-940-Painted-Aged-Copper-SWH.JPG 16" Loma Pendant, 200-White, 940-Painted Aged Copper, Standard White Cord | Customer Submission 4032 3024 78560
61987 64821 product 0 74220 A 20 C 0 0 Loma_Pendant_Light_-_Blush_Pink_Brass_Barn_Light_Electric_-_Closet_Lighting.jpg 16” Shade, 480-Blush Exterior, 930-Painted Aged Brass Interior, SWH-Standard White Cord | Photo Courtesy of Homeowner 1500 2000 74220
59573 64725 product 0 71806 A 21 C 0 0 Wilcox_Deep_Bowl_Chain_Hung_Pendant_Light_-_Barn_Light_Electric_-_Commercial_Interior_Lighting_Design.jpg 20” Wilcox, 100-Black, 4 ft of Chain in 100-Black with SBK-Standard Black Cord | Photo Courtesy of Janks Design Group, Breka Bakery, Symmetry Lighting and Christine Pienaar Photography 1024 1536 71806
60019 64821 product 0 72252 A 21 C 0 0 Loma_Pendant_Light_-_Barn_Light_Electric_-_Deep_Bowl_Lighting_Living_Room.JPG 16” Shade, 200-White Exterior Finish, 997-Raw Brass Interior Finish, CSGW-Gold & White Cloth Cord | Photo Courtesy of Lighting Environments 1242 1516 72252
59574 64725 product 0 71807 A 22 C 0 0 Wilcox_Deep_Bowl_Chain_Hung_Pendant_-_Barn_Light_Electric_-_Commercial_Restaurant_Bakery_Lighting.jpg 20” Wilcox, 100-Black, 4 ft of Chain in 100-Black with SBK-Standard Black Cord | Photo Courtesy of Janks Design Group, Breka Bakery, Symmetry Lighting and Christine Pienaar Photography 1024 1536 71807
62134 64821 product 0 74367 A 22 C 0 0 Loma_Pendant_Light_12in_200-White_997-RawBrass_SBK4.jpeg 12" Loma Pendant Light, 200-White, Interior in 997-Natural Raw Brass, SBK-Standard Black Cord | Photo Courtesy of Homeowner 1158 1390 74367
36996 64725 product 0 49229 A 23 C 0 0 office-remodel-21.jpg 16" Wilcox, 400-Barn Red, Galvanized Chain with Red Chevron Cord | Courtesy of A Spicy Perspectiv 600 900 49229
59516 64821 product 0 71749 A 23 C 0 0 Loma_Cord_Pendant_-_Barn_Light_Electric_-_Modern_Cord_Hung_Pendant_Kitchen_Island_Lighting.JPG 16” Shade, 995-Raw Copper Interior & Exterior, CSBW-Black & White Cloth Cord (Also pictured: Gladstone Wall Sconce) | Photo Courtesy of Building Company Number 7 (@buildingcompanynumber.7) 1225 1204 71749
56235 64725 product 0 68468 A 24 C 0 0 wilcox_chain_hung_pendant_20in_105-txtrdblack_CGG_CSBW.jpg 20” Wilcox, 105-Textured Black | Courtesy of fcStdio and Katrina Wittcamp 1500 1012 68468
58951 64821 product 0 71184 A 24 C 0 0 Loma_Cord_Pendants_-_975-Galvanized_Barn_Light_Electric_-_Restaurant_Lighting.jpg 20” Shade, 975-Galvanized Interior & Exterior, SBK-Standard Black Cord | Photo Courtesy of Health Nut LA 1500 1553 71184
62161 64725 product 0 74394 A 25 C 0 0 american_made_chain_hung_lighting.JPG 16" Wilcox Chain Hung, 480-Blush Pink, SWH-Standard White Cord | Photo Courtesy of Homeowner 1224 1632 74394
64587 64821 product 0 76820 A 25 C 0 0 image0-residential-interior-dining-lighting-on-Loma-Pendant-20in-206-Matte-White-495-Sherbet-Orange-SWH.jpeg 20" Shade, Exterior in 206-Matte White, Interior in 495-Sherbet Orange, SWH-Standard White Cord | Photo Courtesy of Homeowner 1377 1836 76820
62162 64725 product 0 74395 A 26 C 0 0 wilx-chain-hung-blush-pink-swh-.jpg 16" Wilcox Chain Hung, 480-Blush Pink, SWH-Standard White Cord | Photo Courtesy of Homeowner 1500 1090 74395
65251 64725 product 0 77484 A 27 C 0 0 residential-interior-lighting-kitchen-island-Wilcox-Deep-Bowl-Chain-Hung-Pendant-14in-380-Chartreuse-SWH.jpg 14" Wilcox Chain Hung Pendant, 380-Chartruese, SWH-Standard White Cord | Photo Courtesy of Homeowner 1500 1964 77484
65528 64725 product 0 77761 A 28 C 0 0 residential-interior-lighting-bathroom-vanity-Wilcox-Deep-Bowl-Chain-Hung-Pendant-16in-200-White-Chain-975-Galvanized-White-Cloth-Cord.jpg 16" Wilcox Chain Hung Pendant, 200-White, Chain 975-Galvanized, White Cloth Cord | Photo Courtesy of Kaywell Interiors 1500 2001 77761