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 (64917, 64709, 64696, 64730) 
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": 66,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (64917,64709,64696,64730)"
        }
      }
    },
    "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
35839 64696 product 0 48072 A 0 D 0 0 union-stem-10in-barn-red.jpg 10" Union, 400-Barn Red 1000 1000 48072
36060 64709 product 0 48293 A 0 D 0 0 bomber-stem-13in-450-cherry-red-100-black.jpg 13" Bomber, 455-Cherry Red, Mounting in 150-Black 1000 1000 48293
37368 64730 product 0 49601 A 0 D 0 0 avalon-stem-8in-765-delphite.jpg 8" Avalon, 765-Delphite 1000 1000 49601
46649 64917 product 0 58882 A 0 D 0 0 led-original-stem-18in-975-galvanized.jpg 18" The Original™ LED, 975-Galvanized 1000 1000 58882
36070 64709 product 0 48303 A 1 D 0 0 bomber-stem-17in-998-Weathered-Brass.jpg 17" Bomber, 998-Natural Weathered Brass 1000 1000 48303
46650 64917 product 0 58883 A 1 D 0 0 led-original-stem-24in-307-emerald-green.jpg 24" The Original™ LED, 307-Emerald Green 1000 1000 58883
62928 64730 product 0 75161 A 1 D 0 0 avalon-stem-16in-975-galvanized.jpg 16" Avalon, 975-Galvanized 1000 1000 75161
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
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
37369 64730 product 0 49602 A 2 D 0 0 avalon-stem-12in-997-raw-brass.jpg 12" Avalon, 997-Natural Raw Brass 1000 1000 49602
61874 64917 product 0 74107 A 2 D 0 0 led-original-stem-14in-705-navy.jpg 14" The Original™ LED, 705-Navy 1000 1000 74107
35846 64696 product 0 48079 A 3 D 0 0 union-stem-14in-100-black.jpg 14" Union, 100-Black 1000 1000 48079
36061 64709 product 0 48294 A 3 D 0 0 bomber-stem-15in-100-black-975-galvanized-WC-HSC.jpg 15" Bomber, 100-Black, Wire Cage, 975-Galvanized, Mounting in 975-Galvanized, Hang Straight Canopy 1000 1000 48294
37370 64730 product 0 49603 A 3 D 0 0 avalon-stem-12in-navy-CGG-RIB.jpg 12" Avalon, 705-Navy, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 49603
61873 64917 product 0 74106 A 3 D 0 0 led-original-stem-28in-495-sherbert-orange.jpg 28" The Original™ LED, 495-Sherbet Orange, Mounting in 200-White 1000 1000 74106
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
36059 64709 product 0 48292 A 4 D 0 0 bomber-stem-13in-380-chartreuse-980-brushed-aluminum.jpg 13" Bomber, 380-Chartreuse, Mounting in 980-Brushed Aluminum 1000 1000 48292
37372 64730 product 0 49605 A 4 D 0 0 avalon-stem-14in-200-white.jpg 14" Avalon, 200-White 1000 1000 49605
61875 64917 product 0 74108 A 4 D 0 0 led-original-stem-18in-200-white.jpg 18" The Original™ LED, 200-White 1000 1000 74108
35850 64696 product 0 48083 A 5 D 0 0 union-stem-16in-200-white.jpg 16" Union, 200-White 1000 1000 48083
36071 64709 product 0 48304 A 5 D 0 0 bomber-stem-Quick-Ship-13in-300-dark-green.jpg 13" Bomber, 300-Dark Green 1000 1000 48304
37375 64730 product 0 49608 A 5 D 0 0 avalon-stem-14in-100-black-400-barn-red-WC.jpg 14" Avalon, 100-Black, Wire Cage, 400-Barn Red, Mounting in 400-Barn Red 1000 1000 49608
61876 64917 product 0 74109 A 5 D 0 0 led-original-stem-28in-311-jadite.jpg 28" The Original™ LED, 311-Jadite 1000 1000 74109
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
37371 64730 product 0 49604 A 6 D 0 0 avalon-stem-10in-975-galvanized-HSC.jpg 10" Avalon, 975-Galvanized, Hang Straight Canopy 1000 1000 49604
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
36069 64709 product 0 48302 A 7 D 0 0 bomber-stem-17in-975-galvanized-100-black.jpg 17" Bomber, 975-Galvanized, Mounting in 100-Black 1000 1000 48302
61879 64917 product 0 74112 A 7 D 0 0 led-original-stem-24in-400-barn-red.jpg 24" The Original™ LED, 400-Barn Red 1000 1000 74112
72699 64730 product 0 84932 A 7 D 0 0 Avalon-42in-Stem-100-black-full-build_29ly-gv.jpg 42" Avalon, 100-Black 1000 1000 84932
36067 64709 product 0 48300 A 8 D 0 0 bomber-stem-15in-480-blush-pink-975-galvanized.jpg 15" Bomber, 480-Blush Pink, Mounting in 975-Galvanized 1000 1000 48300
49372 64730 product 0 61605 A 8 D 0 0 avalon-stem-16in-390-teal.jpg 16" Avalon, 390-Teal 1000 1000 61605
67593 64917 product 0 79826 A 8 C 0 0 residential-interior-lighting-barn-ski-Original-LED-Stem-Mount-Pendant-18in-995-Raw-Copper-12in-stem-995-Raw-Copper-Flat-Lens.jpg 18" The Original™ LED Stem Mount, 995-Raw Copper, 18" Stem, 995-Raw Copper, Flat Lens | Customer Submission 1500 1823 79826
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
36068 64709 product 0 48301 A 9 D 0 0 old-dixie-11-inch-stem-mount-black.jpg 11" Bomber, 997-Natural Raw Brass, 12" Stem, 100-Black 600 600 48301
37373 64730 product 0 49606 A 9 D 0 0 avalon-stem-12in-400-barn-red.jpg 12" Avalon, 400-Barn Red 1000 1000 49606
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
67592 64917 product 0 79825 A 9 C 0 0 residential-interior-lighting-on-barn-ski-Original-LED-Stem-Mount-Pendant-18in-995-Raw-Copper-18in-stem-995-Raw-Copper-Flat-Lens.jpg 18" The Original™ LED Stem Mount, 995-Raw Copper, 18" Stem, 995-Raw Copper, Flat Lens | Customer Submission 1500 1759 79825
36072 64709 product 0 48305 A 10 D 0 0 olddixieedit.jpg 17" Bomber, 307-Emerald Green, 18" Stem, 975-Galvanized 600 600 48305
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
62927 64730 product 0 75160 A 10 D 0 0 avalon-stem-16in-700-royal-blue-975-galvanized.jpg 16" Avalon, 700-Royal Blue, Mounting in 980-Brushed Aluminum 1000 1000 75160
67594 64917 product 0 79827 A 10 C 0 0 residential-interior-lighting-barn-ski-Original-LED-Stem-Mount-Pendant-18in-995-Raw-Copper-12in-stem-995-Raw-Copper-Flat-Lens_k88n-s7.jpg 18" The Original™ LED Stem Mount, 995-Raw Copper, 18" Stem, 995-Raw Copper, Flat Lens | Customer Submission 1500 1581 79827
37377 64730 product 0 49610 A 11 C 0 0 ashland_stem_mount_12in_105_textured_black_24in_stem5.jpg 12" Avalon, 105-Textured Black, 24" Stem | Photo Courtesy of SBK Living 1500 2250 49610
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
62176 64709 product 0 74409 A 11 C 0 0 Bomber_Stem_Mount_Pendant_17in_355_Jadite_48instem_HSC.jpg 17" Bomber, 311-Jadite, 48" Stem, Hang Straight Canopy | Photo Courtesy of Bossy Sister Quilting 1500 1108 74409
67562 64917 product 0 79795 A 11 C 0 0 residential-interior-lighting-gym-Original-LED-Stem-Mount-Pendant-20in-500-Buttery-Yellow-12in-Stem-800-Industrial-Grey-Wire-Cage-800-Industrial-Grey-Flat-Lens_qf8m-87.jpg 20" The Original™ LED Stem Mount, 500-Buttery Yellow, 12" Stem, 800-Industrial Grey, Wire Cage, 800-Industrial Grey, Flat Lens | Customer Submission 1500 1714 79795
37379 64730 product 0 49612 A 12 C 0 0 ashland_stem_mount_12in_105_textured_black_24in_stem.jpg 12" Avalon, 105-Textured Black, 24" Stem | Photo Courtesy of SBK Living 1500 2250 49612
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
67563 64917 product 0 79796 A 12 C 0 0 residential-interior-lighting-gym-Original-LED-Stem-Mount-Pendant-20in-500-Buttery-Yellow-12in-Stem-800-Industrial-Grey-Wire-Cage-800-Industrial-Grey-Flat-Lens.jpg 20" The Original™ LED Stem Mount, 500-Buttery Yellow, 12" Stem, 800-Industrial Grey, Wire Cage, 800-Industrial Grey, Flat Lens | Customer Submission 1500 1375 79796
69138 64709 product 0 81371 A 12 C 0 0 28F46B49-residential-interior-lighting-mudroom-Bomber-Flush-Mount-Pendant-13in-998-Weathered-Brass-Mounting-600-Bronze.jpg 13" Bomber, 998-Natural Weathered Brass, Mounting in 600-Bronze | Photo Courtesy of Customer 1500 1153 81371
36062 64709 product 0 48295 A 13 C 0 0 IMG_3755_(1024x872).jpg (3) 17" Bombers, 311-Jadite, 36" Stem, 980-Brushed Aluminum 1024 872 48295
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
52614 64730 product 0 64847 A 13 C 0 0 ashland_stem_mount_12in_105_textured_black_24in_stem3.jpg 12" Avalon, 105-Textured Black, 24" Stem | | Photo Courtesy of SBK Living 1500 1000 64847
66842 64917 product 0 79075 A 13 C 0 0 commercial-interior-lighting-on-retail-Original-LED-Stem-Mount-Pendant-18in-370-Mint-6in-Stem-200-White-Flat-Lens-Life-Is-Good_890f-u5.jpg 18" The Original™ LED, 370-Mint, 6" Stem, 200-White, Flat Lens | Photo Courtesy of Life is Good 1500 1033 79075
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
62274 64709 product 0 74507 A 14 D 0 0 Bomber_Stem_Mount_Pendant_15in_105_TexturedBlack_12instem_975-Galvanized.jpg 15" Bomber, 105-Textured Black, 12" Stem, 975-Galvanized | Photo Courtesy of J&J Photography 1500 1000 74507
64558 64730 product 0 76791 A 14 C 0 0 354B0184-commercial-exterior-Cowfish-restaurant-bar-avalon-stem-heavy-duty-canopy-500-buttery-yellow-975-galvanized-stem.jpg 8" Avalon, 500-Buttery Yellow, Heavy Duty Canopy, 975-Galvanized | Located at The Cowfish Restaurant in Universal 1500 2250 76791
66843 64917 product 0 79076 A 14 C 0 0 commercial-interior-lighting-on-retail-Original-LED-Stem-Mount-Pendant-18in-370-Mint-6in-Stem-200-White-Flat-Lens-Life-Is-Good.jpg 18" The Original™ LED, 370-Mint, 6" Stem, 200-White, Flat Lens | Photo Courtesy of Life is Good 1500 1999 79076
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
62197 64709 product 0 74430 A 15 C 0 0 Bomber_Stem_MountPendant_13in_15in_100_Black_24instem.jpg 15" Bomber & 13" Bomber, 100-Black, 24" Stem, 975-Galvanized | Photo Courtesy of Homeowner 1500 2000 74430
64557 64730 product 0 76790 A 15 C 0 0 2V3A0028-1-commercial-exterior-bar-grill-restaurant-avalon-stem-mount-heavy-duty-canopy-500-buttery-yellow-975-galvanized-stem.jpg 8" Avalon, 500-Buttery Yellow, Heavy Duty Canopy, 975-Galvanized | Located at The Cowfish Restaurant in Universal 1500 1022 76790
37378 64730 product 0 49611 A 16 C 0 0 barn_lighting_american_made-1024x768-768x576__1_.jpg 14" Avalon, 100-Black, 6" Stem, WC-Wire Cage, 975-Galvanized | Photo Courtesy of Customer 768 576 49611
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
61865 64730 product 0 74098 A 17 C 0 0 Avalon_Stem_Mount_Pendant_-_495_Sherbet_Orange_Barn_Light_Electric_-_Powder_Room_Lighting.jpg 10” Avalon, 495-Sherbet Orange, 24" Stem | | Photo Courtesy of MJG Interiors 1500 2000 74098
47332 64709 product 0 59565 A 18 C 0 0 industrial_pendant_lighting_kitchen_lighting-768x1024-576x768.jpg 17" Bomber, 500-Buttery Yellow Powder Coat, 36” Stems | Photo courtesy of homeowner 576 768 59565
58940 64730 product 0 71173 A 18 C 0 0 Avalon_Stem_Mount_Pendant_Light_-_Barn_Light_Electric_-_Modern_Farmhouse_Laundry_Room_Lighting.png 12" Avalon, 105-Textured Black, 24" Stem | | Photo Courtesy of SBK Living 458 458 71173
60325 64730 product 0 72558 A 19 C 0 0 Avalon_Stem_Mount_Pendant_-_Barn_Light_Electric_-_Kitchen_Sink_Lighting.JPG 12" Avalon, 250-White, 24" Stem | | Photo Courtesy of Homeowner 1399 1980 72558