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 (65125, 64727, 64694, 62059) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00159

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": 69,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (65125,64727,64694,62059)"
        }
      }
    },
    "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
19694 62059 product 0 31483 A 0 D 0 0 wilcox-vented-gooseneck-16in-200-black-975-galvanized-G11.jpg 16" Wilcox Vented, 100-Black, Narrow Slot Vents, G11 Gooseneck Arm, 975-Galvanized 1000 1000 31483
35673 64694 product 0 47906 A 0 D 0 0 wilcox-gooseneck-10in-975-galvanized-G26-dbw.jpg 10" Wilcox, 975-Galvanized, G26 Gooseneck Arm 1000 1000 47906
37258 64727 product 0 49491 A 0 D 0 0 wilcox-12in-500-buttery-sconce-CGG.jpg 12" Wilcox, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 49491
55481 65125 product 0 67714 A 0 D 0 0 Overtime-Small-Barn-Red-G26-Gooseneck-Barn-Red-Heat-Sink.jpg 14" Kickoff, 400-Barn Red, Heat Sink in 400-Barn Red, G26 Gooseneck Arm in 400-Barn Red 1000 1000 67714
19693 62059 product 0 31482 A 1 D 0 0 wilcox-vented-gooseneck-10in-995-raw-copper-G1.jpg 10" Wilcox Vented, 995-Natural Raw Copper, Narrow Slot Vents, G1 Straight Arm 1000 1000 31482
37259 64727 product 0 49492 A 1 D 0 0 wilcox-12in-300-dark-green-sconces.jpg 12" Wilcox, 300-Dark Green 1000 1000 49492
55483 65125 product 0 67716 A 1 D 0 0 kickoff-gooseneck-G15-jadite.jpg 14" Kickoff, 355-Porcelain Jadite, Heat Sink in 355-Jadite, G15 Gooseneck Arm in 355-Jadite 1000 1000 67716
62835 64694 product 0 75068 A 1 D 0 0 wilcox-gooseneck-16in-765-delphite-G11.jpg 16" Wilcox, 765-Porcelain Delphite, G11 Gooseneck Arm 1000 1000 75068
23873 62059 product 0 35806 A 2 D 0 0 wilcox-vented-gooseneck-20in-400-barn-red-G32.jpg 20" Wilcox Vented, 400-Barn Red, Circle Vents, G32 Gooseneck Arm 1000 1000 35806
35680 64694 product 0 47913 A 2 D 0 0 wilcox-gooseneck-16in-250-white-100-black-G8-CGG.jpg 16" Wilcox, 250-Porcelain White, CGG-Standard Cast Guard, 150-Black, CLR-Clear Glass, G8 Gooseneck Arm, 150-Black 1000 1000 47913
55484 65125 product 0 67717 A 2 D 0 0 Kickoff-Large-Delphite-G26-Galvanized-Gooseneck-Galvanized-Heat-Sink.jpg 20" Kickoff, 765-Porcelain Delphite, Heat Sink in 975-Galvanized, G26 Gooseneck Arm 1000 1000 67717
62844 64727 product 0 75077 A 2 D 0 0 wilcox-12in-200-white-sconce.jpg 12" Wilcox, 200-White 1000 1000 75077
19695 62059 product 0 31484 A 3 D 0 0 wilcox-vented-gooseneck-12in-705-raw-navy-G15.jpg 12" Wilcox Vented, 705-Navy, Narrow Slot Vents, G15 Gooseneck Arm 1000 1000 31484
35678 64694 product 0 47911 A 3 D 0 0 wilcox-gooseneck-12in-705-navy-G11-CGG-RIB.jpg 12" Wilcox, 705-Navy, CGG-Standard Cast Guard, RIB-Ribbed Glass, G11 Gooseneck Arm 1000 1000 47911
37257 64727 product 0 49490 A 3 D 0 0 wilcox-12in-705-navy-CGG.jpg 12" Wilcox, 705-Navy, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 49490
55482 65125 product 0 67715 A 3 D 0 0 Overtime-Chartreuse-G26-Galvanized-Gooseneck-Galvanized-Heat-Sink.jpg 20" Kickoff, 380-Chartreuse, Heat Sink in 975-Galvanized, G26 Gooseneck Arm in 975-Galvanized 1000 1000 67715
31413 62059 product 0 43646 A 4 C 0 0 residential_wesco_vented_gooseneck_light_galvanized_g19_outdoor_porch6.jpg 16" Wilcox Vented Gooseneck Light, 975-Galvanized, Circle Vents, G19 Gooseneck Arm in 975-Galvanized | Photo Courtesy of Liz Marie Blog 700 934 43646
55485 65125 product 0 67718 A 4 D 0 0 Overtime-Small-Black-G26-Gooseneck-Texturized-Black-Heat-Sink.jpg 12" Kickoff, 105-Textured Black, Heat Sink in 105-Textured Black, G26 Gooseneck Arm in 105-Textured Black 1000 1000 67718
63848 64694 product 0 76081 A 4 D 0 0 24in_wilcox_gooseneck_100_black_g22_gooseneck_arm_995_raw_copper.jpg 24" Wilcox, 100-Black, G22 Gooseneck Arm, 995-Natural Raw Copper, Decorative Backing Plate & Hex Cover 1000 1000 76081
33882 62059 product 0 46115 A 5 C 0 0 residential_wesco_vented_gooseneck_light_galvanized_g19_outdoor_porch3.jpg 16" Wilcox Vented Gooseneck Light, 975-Galvanized, Circle Vents, G19 Gooseneck Arm in 975-Galvanized | Photo Courtesy of Liz Marie Blog 768 1150 46115
35696 64694 product 0 47929 A 5 D 0 0 wilcox-gooseneck-12in-998-weathered-brass-100-black-G19.jpg 12" Wilcox, 998-Natural Weathered Brass, G19 Gooseneck Arm, 100-Black 1000 1000 47929
37260 64727 product 0 49493 A 5 D 0 0 wilcox-12in-100-black-sconce.jpg 12" Wilcox, 100-Black 1000 1000 49493
35676 64694 product 0 47909 A 6 D 0 0 wilcox-gooseneck-12in-300-dark-green-G1.jpg 12" Wilcox, 300-Dark Green, G1 Straight Arm 1000 1000 47909
37255 64727 product 0 49488 A 6 C 0 0 wilcox-sconce-750-cobalt-blue.jpg 14" Wilcox Wall Sconce, 710-Cobalt Blue 600 900 49488
46282 62059 product 0 58515 A 6 C 0 0 wilcox_vented_gooseneck_light_16in_975_galvanized_circlevent_G19arm6.jpg 16" Wilcox Vented Gooseneck Light, 975-Galvanized, Circle Vents, G19 Gooseneck Arm | Photo Courtesy of Allie Boss (@alliemboss) 1500 2000 58515
35683 64694 product 0 47916 A 7 D 0 0 wilcox-gooseneck-24in-490-magenta-100-black-G22.jpg 24" Wilcox, 490-Magenta, G22 Gooseneck Arm, 100-Black 1000 1000 47916
37256 64727 product 0 49489 A 7 C 0 0 wilcox-sconce-750-cobalt.jpg 14" Wilcox Wall Sconce, 710-Cobalt Blue 853 1280 49489
57035 62059 product 0 69268 A 7 C 0 0 Wilcox_Vented_Gooseneck_Light_-_975_Galvanized_Farmhouse.jpg 14” Wilcox Vented Gooseneck Light, 975-Galvanized, Circle Vents, G19 Gooseneck Arm | Photo Courtesy of Amber (@farmhouseforseven) 1500 2000 69268
35674 64694 product 0 47907 A 8 D 0 0 wilcox-gooseneck-10in-997-raw-brass-G14.jpg 10" Wilcox, 997-Natural Raw Brass, G14 Straight Arm 1000 1000 47907
60341 62059 product 0 72574 A 9 C 0 0 Wilcox_Vented_Gooseneck_Light_-_Barn_Light_Electric_-_Front_Porch_Lighting.jpg 14” Wilcox Vented Gooseneck Light, 105-Textured Black, Circle Vents, G19 Gooseneck Arm | Photo Courtesy of Megan McPherson (@mcphersonmanor) 1242 1518 72574
63847 64694 product 0 76080 A 9 D 0 0 24in_wilcox_gooseneck_705_navy_g24.jpg 24" Wilcox, 705-Navy, G24 Gooseneck Arm 1000 1000 76080
66951 64727 product 0 79184 A 9 C 0 0 residential-interior-lighting-bathroom-vanity-Wilcox-Deep-Bowl-Wall-Sconce-12in-500-Buttery-Yellow.jpg 12" Wilcox Wall Sconce, 500-Buttery Yellow | Customer Submission 1500 1500 79184
35675 64694 product 0 47908 A 10 D 0 0 wilcox-gooseneck-12in-200-white-G15.jpg 12" Wilcox, 200-White, G15 Gooseneck Arm 1000 1000 47908
55981 64727 product 0 68214 A 10 C 0 0 Wilcox_Deep_Bowl_Sconce_-_Nina_Freudenberger_Haus_Interior_-_Jessica_Alexander_Photography_-_Barn_Light_Electric.png 14" Wilcox Wall Sconce, 105-Textured Black | Design by Nina Freudenberger and Photo by Jessica Alexander Photography 477 595 68214
56894 62059 product 0 69127 A 10 C 0 0 Wilcox_Vented_Gooseneck_Light_-_Galvanized_Gooseneck_-_Exterior_Lighting_Modern_Cottage.JPG 16" Wilcox Vented Gooseneck Light, 975-Galvanized, Circle Vents, G16 Gooseneck Arm | Photo Courtesy of Modern Cottage (www.moderncottage.com) 795 1113 69127
37268 64727 product 0 49501 A 11 C 0 0 Residential-Wilcox-Wall-Sconce-975_Galvanized-Nook.jpg 12" Wilcox Wall Sconce, 975-Galvanized | Photo Courtesy of Customer 1500 2000 49501
60340 62059 product 0 72573 A 11 C 0 0 Wilcox_Vented_Gooseneck_Light_-_Barn_Light_Electric_-_Front_Porch_Farmhouse_Lighting.jpg 14” Wilcox Vented Gooseneck Light, 105-Textured Black, Circle Vents, G19 Gooseneck Arm | Photo Courtesy of Megan McPherson (@mcphersonmanor) 1242 1516 72573
63850 64694 product 0 76083 A 11 D 0 0 24in_wilcox_gooseneck_307_emerald_green_g8_100_black.jpg 24" Wilcox, 307-Emerald Green, G8 Gooseneck Arm, 100-Black 1000 1000 76083
35677 64694 product 0 47910 A 12 D 0 0 wilcox-gooseneck-8in-999-oil-rubbed-copper-100-black-G65.jpg 8" Wilcox, 999-Natural Oil-Rubbed Copper, G65 Gooseneck Arm, 100-Black 1000 1000 47910
37269 64727 product 0 49502 A 12 C 0 0 image013.jpg 12" Wilcox Wall Sconce, 100-Black | Photo Courtesy of Rifle Paper Co., Winter Park, FL 800 600 49502
35679 64694 product 0 47912 A 13 D 0 0 wilcox-gooseneck-14in-550-yellow-100-black-G24-CGG-RIB.jpg 14" Wilcox, 550-Porcelain Yellow, CGG-Standard Cast Guard, CLR-Clear Glass, G24 Gooseneck Arm, 100-Black 1000 1000 47912
58102 64727 product 0 70335 A 13 C 0 0 Wilcox_Deep_Bowl_Wall_Sconce_Light_-_850_Porcelain_Graphite_Barn_Light_Electric_-_Fireplace_Lighting_Wall_Sconce.jpg 12" Wilcox Wall Sconce, 850-Graphite | Photo Courtesy of Homeowner 1500 2000 70335
35693 64694 product 0 47926 A 14 D 0 0 wilcox-gooseneck-16in-975-galvanized-G19.jpg 16" Wilcox, 975-Galvanized, G19 Gooseneck Arm 1000 1000 47926
58101 64727 product 0 70334 A 14 C 0 0 Wilcox_Deep_Bowl_Wall_Sconce_-_850_Porcelain_Graphite_Barn_Light_Electric_-_Modern_Interior_Lighting.jpg 12" Wilcox Wall Sconce, 850-Graphite | Photo Courtesy of Homeowner 1500 1125 70334
35684 64694 product 0 47917 A 15 D 0 0 wilcox-gooseneck-8in-700-Royal-G3.jpg 8" Wilcox, 700-Royal Blue, G3 Straight Arm 1000 1000 47917
35681 64694 product 0 47914 A 16 D 0 0 wilcox-gooseneck-14in-975-galvanized-G12-WGG-FST.jpg 14" Wilcox, 975-Galvanized, WGG-Wire Guard, FST-Frosted Glass, G12 Gooseneck Arm 1000 1000 47914
35694 64694 product 0 47927 A 17 D 0 0 wilcox-gooseneck-20in-200-white-G15.jpg 20" Wilcox, 200-White, G15 Gooseneck Arm 1000 1000 47927
68741 64694 product 0 80974 A 18 C 0 0 image4-residential-exterior-lighting-on-Wilcox-Gooseneck-16in-100-Black-G26arm-980-Brushed-Aluminum.jpeg 16" Wilcox Gooseneck, 100-Black, G26 Arm, 980-Brushed Aluminum | Customer Submission 1512 2016 80974
67987 64694 product 0 80220 A 19 C 0 0 residential-interior-lighting-on-kitchen-sink-Wilcox-Deep-Bowl-Gooseneck-12in-106-Matte-Black-G40arm-Acrylic-Diffuser.jpg 12" Wilcox, 106-Matte Black, G40 Arm, Acrylic Diffuser | Customer Submission 4032 3024 80220
61835 64694 product 0 74068 A 20 C 0 0 Wilcox_Gooseneck_Light_-_Barn_Light_Electric_-_100_Black_Kitchen_Lighting.jpg 16” Wilcox, 100-Black, G22 Gooseneck Arm (Also pictured: Lafayette SoHo Sconces) | Photo Courtesy of Caldera Design Build 1500 2250 74068
65292 64694 product 0 77525 A 23 C 0 0 170846-residential-interior-lighting-bathroom-vanity-Wilcox-Deep-Bowl-Gooseneck-10in-470-Watermelon-G26arm-Industrial-Towel-Bar-Toilet-Paper-Holder-470-Watermelon-alt.jpg 10" Wilcox, 470-Watermelon, G26 Arm | Photo Courtesy of Homeowner 1500 2000 77525
65634 64694 product 0 77867 A 24 C 0 0 residential-interior-lighting-bathroom-vanity-Wilcox-Deep-Bowl-Gooseneck-10in-570-Sunflower-G26arm-Industrial-Towel-Bar-570-Sunflower_i4mc-jl.jpg 10" Wilcox, 570-Sunflower, G26 Arm | Customer Submission 1500 2000 77867
54231 64694 product 0 66464 A 25 C 0 0 wilcox_gooseneck_14in_oil_rubbed_copper_G64arm4-residential-interior-living-room-fire-place-beach.jpg 14” Wilcox, 999-Natural Oil Rubbed Copper, G64 Gooseneck Arm | Photo Courtesy of D’Asign Source 1500 2250 66464
49161 64694 product 0 61394 A 27 C 0 0 12in_wilcox_105_textured_black-alt.jpg 12” Wilcox, 105-Textured Black, G1 Gooseneck Straight Arm | Photo Courtesy of Maggie Piersons Designs 1500 2250 61394
35687 64694 product 0 47920 A 28 C 0 0 wilcox_gooseneck_12in_PTMVintageGreen_G26.jpg (2) 12" Wilcox, 300-Dark Green, G26 Gooseneck Arms, 100-Black | Photo Courtesy of Candice Craig Photography and Jamie @whitetailfarmhouse 1500 2245 47920
54230 64694 product 0 66463 A 29 C 0 0 wilcox_gooseneck_14in_oil_rubbed_copper_G64arm2-residential-interior-living-room-fire-place-beach.jpg 14” Wilcox, 999-Natural Oil Rubbed Copper, G64 Gooseneck Arm | Photo Courtesy of D’Asign Source 1500 2250 66463
61836 64694 product 0 74069 A 31 C 0 0 Wilcox_Gooseneck_Light_-_100_Black_Barn_Light_Electric_-_Interior_Kitchen_Lighting.jpg 16” Wilcox, 100-Black, G22 Gooseneck Arm (Also pictured: Wilcox Uplight Stem Mount Pendant) | Photo Courtesy of Caldera Design Build 1500 2089 74069
35690 64694 product 0 47923 A 32 C 0 0 wesco_gooseneck_light3.jpg 8" Wilcox, 100-Black, G26 Gooseneck Arm | Courtesy of Christine DiMarco 360 480 47923
39202 64694 product 0 51435 A 33 C 0 0 Goodrich_Roscoe_Gooseneck_Light_-_150-Black_Finish_-_G65_Gooseneck_Arm_in_975-Galvanized_-_Dusk-to-Dawn_Photocell_-_4.jpg (4) 16” Wilcox, 150-Porcelain Black, G65 Gooseneck Arm in 975-Galvanized, Dusk-to-Dawn Photocell | Photo Courtesy of Mandi Gubler at Vintage Revivals 1000 1498 51435
68372 64694 product 0 80605 A 34 C 0 0 residential-exterior-lighting-barn-Wilcox-Gooseneck-16in-355-Jadite-G65arm.jpg 16" Wilcox, 355-Porcelain Jadite, G65 Gooseneck Arm 1500 2000 80605
54232 64694 product 0 66465 A 35 C 0 0 wilcox_gooseneck_14in_oil_rubbed_copper_G64arm3-residential-interior-living-room-fire-place-beach.jpg 14” Wilcox, 999-Natural Oil Rubbed Copper, G64 Gooseneck Arm | Photo Courtesy of D’Asign Source 1500 1000 66465
35686 64694 product 0 47919 A 36 C 0 0 gooseneck_lighting-1-522x768.jpg (2) 12" Wilcox, 105-Textured Black, G1 Gooseneck Arms | Photo Courtesy of Maggie Peirson Designs 522 768 47919
49204 64694 product 0 61437 A 37 C 0 0 Screen_Shot_2019-06-05_at_1.01.00_PM.png 10” Wilcox, 390-Teal, G15 Gooseneck Arm | Photo Courtesy of MA Allen Interiors (@maalleninteriors) 480 600 61437
35685 64694 product 0 47918 A 38 C 0 0 barn_lights_american_made-512x768.jpg (3) 10" Wilcox, 800-Industrial Grey, G15 Gooseneck Arm, 975-Galvanized | Photo Courtesy of AHR Designs 512 768 47918
46572 64694 product 0 58805 A 39 C 0 0 Screen_Shot_2019-10-28_at_1.42.47_PM.png 8” Wilcox, 350-Porcelain Vintage Green, G26 Gooseneck Arm | Photo Courtesy of Green Line Apothecary and Lineage Corporation 633 854 58805
46571 64694 product 0 58804 A 40 C 0 0 Screen_Shot_2019-10-28_at_1.38.26_PM.png (3) 10” Wilcox, 997-Natural Raw Brass, G15 Gooseneck Arm in 100-Black, Cast Guard in 100-Black with Clear Glass | Photo Courtesy of Green Line Apothecary and Lineage Corporation 629 849 58804
46570 64694 product 0 58803 A 41 C 0 0 Screen_Shot_2019-10-28_at_1.35.54_PM.png (2) 10” Wilcox, 997-Natural Raw Brass, G15 Gooseneck Arm in 100-Black, Cast Guard in 100-Black with Clear Glass | Photo Courtesy of Green Line Apothecary and Lineage Corporation 1285 855 58803
58160 64694 product 0 70393 A 42 C 0 0 Wilcox_Gooseneck_Light_-_150_Porcelain_Black_Barn_Light_Electric_-_Exterior_Lighting.jpg 8” Wilcox, 150-Porcelain Black, G4 Gooseneck Arm, Wire Cage in 975-Galvanized| Photo Courtesy of Homeowner 1500 2000 70393
61881 64694 product 0 74114 A 43 C 0 0 Wilcox_Gooseneck_Light_-_550_Yellow_Barn_Light_Electric_-_Exterior_Lighting.jpg 14” Wilcox, 550-Yellow, G64 Gooseneck Arm | Photo Courtesy of Homeowner 1500 2000 74114