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 (64907, 62859, 64901, 61322) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00172

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": 58,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (64907,62859,64901,61322)"
        }
      }
    },
    "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
23202 62859 product 0 35117 A 0 D 0 0 schoolhouse-primary-LED-cord-pendant-small-opaque-glass-997-raw-brass-hex-cover-SBK-standard-black-cord.jpg Primary LED Schoolhouse Pendant Light, 997-Natural Raw Brass, Small Opaque Glass, SBK-Standard Black Cord 1000 1000 35117
47806 64901 product 0 60039 A 0 D 0 0 schoolhouse-acorn-cord-opaque-stripe-PB4-white-emerald-green-CSW-cord-cloth-white.jpg Acorn Pendant, 200-White, Opaque Glass, Three Painted Band, 307-Emerald Green, CSW-White Cloth Cord 1000 1000 60039
47807 64901 product 0 60040 A 0 D 0 0 schoolhouse-acorn-cord-clear-stripe-none-galvanized-TRW-cord-twist-red-white-bulb-G30.jpg Acorn Pendant, 975-Galvanized, Clear Glass, No Stripe, TRW-Red & White Twist Cord, Shown with G30 Bulb 1000 1000 60040
47808 64901 product 0 60041 A 0 D 0 0 schoolhouse-acorn-cord-opaque-stripe-PB6-CSR-red-cord-cloth-red.jpg Acorn Pendant, 400-Barn Red, Opaque Glass, Five Painted Band, 400-Barn Red, CSR-Red Cloth Cord 1000 1000 60041
47809 64901 product 0 60042 A 0 D 0 0 schoolhouse-acorn-cord-opaque-stripe-none-brass-raw-cord-CSBW-cloth-black-white.jpg Acorn Pendant, 997-Natural Raw Brass, Opaque Glass, No Stripe, CSBW-Black & White Cloth Cord 1000 1000 60042
47810 64901 product 0 60043 A 0 D 0 0 schoolhouse-acorn-cord-clear-stripe-PB5-delphite-cord-cloth-CSUW-blue-white-bulb-1890.jpg Acorn Pendant, 715-Delphite Blue, Clear Glass, Three Painted Band, CSUW-Blue & White Cloth Cord, Shown with 1890 Edison Bulb 1000 1000 60043
47830 64907 product 0 60063 A 0 D 0 0 schoolhouse-drum-cord-clear-stripe-PB8-copper-raw-TBR-cord-twist-brown-bulb-chrome.jpg Drum Schoolhouse Pendant, 995-Natural Raw Copper, Clear Glass, Four Painted Band, 100-Black, TBR-Brown Cotton Twist Cord, Shown with G40 Half-Chrome Bulb 1000 1000 60063
61191 64901 product 0 73424 A 0 D 0 0 schoolhouse-acorn-cord-opaque-stripe-PB5-buttery-yellow-stripe-CSB-standard-black.jpg Acorn Pendant, 500-Buttery Yellow, Opaque Glass, Three Painted Band, CSB-Black Cloth Cord 1000 1000 73424
63645 61322 product 0 75878 A 0 D 0 0 schoolhouse-primary-cord-pendant-large-clear-glass-300-dark-green-fern-green-chevron-cloth-cord.jpg Primary Schoolhouse Pendant Light, 300-Dark Green, Large Clear Glass, Fern Green Chevron Cloth Cord 1000 1000 75878
65919 64907 product 0 78152 A 0 C 0 0 IMG_9915-residential-interior-lighting-Drum-Schoolhouse-cord-Pendant-Opaque-105-Textured-Black-CSBB-Black-Brown-Chevron-PB8-Four-Painted-Bands-715-Delphite-Blue.JPG Drum Schoolhouse Pendant, Opaque Glass, 105-Textured Black, Black & Brown Chevron Cord, PB8-Four Painted Bands, 715-Delphite | Photo Courtesy of Mermaid Cottages, Tybee Island 3284 4926 78152
15374 61322 product 0 26821 A 1 D 0 0 schoolhouse-primary-cord-pendant-small-opaque-glass-997-raw-brass-hex-cover-SBK-standard-black-cord.jpg Primary Schoolhouse Pendant Light, 997-Natural Raw Brass, Small Opaque Glass, Standard Black Cord 1000 1000 26821
47831 64907 product 0 60064 A 1 D 0 0 schoolhouse-drum-cord-opaque-stripe-none-emerald-green-CSBW-cord-cloth-black-white.jpg Drum Schoolhouse Pendant, 307-Emerald Green, Opaque Glass, No Stripe, CSBW-Black & White Cloth Cord 1000 1000 60064
63717 62859 product 0 75950 A 1 D 0 0 schoolhouse-primary-LED-cord-pendant-large-clear-glass-996-weathered-copper-hex-cover-705-navy-double-painted-band-rust-cloth-cord.jpg Primary LED Schoolhouse Pendant Light, 996-Natural Weathered Copper, Large Clear Glass, Double Painted Band, 705-Navy, Rust Cloth Cord 1000 1000 75950
31703 61322 product 0 43936 A 2 D 0 0 schoolhouse-primary-cord-pendant-small-opaque-glass-100-black-double-painted-band-SBK.jpg Primary Schoolhouse Pendant Light, 100-Black, Small Opaque Glass, Double Painted Band, Standard Black Cord 1000 1000 43936
31727 62859 product 0 43960 A 2 D 0 0 schoolhouse-primary-LED-cord-pendant-small-clear-glass-200-white-triple-painted-band-CSW-white-cloth-cord.jpg Primary LED Schoolhouse Pendant Light, 200-White, Small Clear Glass, Triple Painted Band, Standard White Cord 1000 1000 43960
47832 64907 product 0 60065 A 2 D 0 0 schoolhouse-drum-cord-clear-stripe-PB7-navy-CSGW-cord-cloth-white-gold-cloth-bulb-G30.jpg Drum Pendant, 705-Navy, Clear Glass, Single Painted Band, 705-Navy, CSGW-Gold & White Cloth Cord, Shown with G30 Bulb 1000 1000 60065
31708 61322 product 0 43941 A 3 D 0 0 schoolhouse-primary-cord-pendant-large-clear-glass-996-weathered-copper-hex-cover-705-navy-double-painted-band-rust-cloth-cord.jpg Primary Schoolhouse Pendant Light, 996-Natural Weathered Copper, Large Clear Glass, Double Painted Band, 705-Navy, Rust Cloth Cord 1000 1000 43941
31734 62859 product 0 43967 A 3 D 0 0 schoolhouse-primary-LED-cord-pendant-large-opaque-glass-975-galvanized-100-black-single-painted-band-CSB-black-cloth-cord.jpg Primary LED Schoolhouse Pendant Light, 975-Galvanized, Large Opaque Glass, Single Painted Band, 100-Black, Standard Black Cord 1000 1000 43967
47833 64907 product 0 60066 A 3 D 0 0 schoolhouse-drum-cord-clear-stripe-none-chartreuse-CSGB-cord-cloth-gold-black-bulb-round.jpg Drum Schoolhouse Pendant, 380-Chartreuse, Clear Glass, No Stripe, CSBG-Black & Gold Cloth Cord, Shown with G40 Bulb 1000 1000 60066
31706 61322 product 0 43939 A 4 D 0 0 schoolhouse-primary-cord-pendant-large-opaque-glass-500-buttery-yellow-triple-painted-band-buttery-yellow-cloth-cord.jpg Primary Schoolhouse Pendant Light, 500-Buttery Yellow, Large Opaque Glass, Triple Painted Band, Buttery Yellow Cloth Cord 1000 1000 43939
31726 62859 product 0 43959 A 4 D 0 0 schoolhouse-primary-LED-cord-pendant-small-clear-glass-999-oil-rubbed-copper-hex-cover-311-jadite-single-painted-band-SBK.jpg Primary LED Schoolhouse Pendant Light, 999-Natural Oil-Rubbed Copper, Small Clear Glass, Single Painted Band, 311-Jadite, Standard Black Cord 1000 1000 43959
47835 64907 product 0 60068 A 4 D 0 0 schoolhouse-drum-cord-opaque-stripe-PB9-copper-oil-rubbed-TPT-putty-cotton-twist-cord.jpg Drum Schoolhouse Pendant, 615-Oil-Rubbed Bronze, Opaque Glass, Seven Painted Band, 100-Black, TPT-Putty Cotton Twist Cord 1000 1000 60068
31705 61322 product 0 43938 A 5 D 0 0 schoolhouse-primary-cord-pendant-small-clear-glass-200-white-triple-painted-band-CSW-white-cloth-cord.jpg Primary Schoolhouse Pendant Light, 200-White, Small Clear Glass, Triple Painted Band, Standard White Cord 1000 1000 43938
63995 62859 product 0 76228 A 5 D 0 0 schoolhouse-primary-LED-cord-pendant-small-opaque-glass-100-black-double-painted-band-SBK.jpg Primary LED Schoolhouse, 100-Black, Small Opaque Glass, Double Painted Band, Standard Black Cord 1000 1000 76228
64122 64907 product 0 76355 A 5 C 0 0 MWKC85~9.JPG Drum Schoolhouse Pendant, Opaque Glass, 480-Blush Pink, Four Bands, 100-Black 2485 3360 76355
31704 61322 product 0 43937 A 6 D 0 0 schoolhouse-primary-cord-pendant-small-clear-glass-999-oil-rubbed-copper-hex-cover-311-jadite-single-painted-band-SBK.jpg Primary Schoolhouse Pendant Light, 999-Natural Oil-Rubbed Copper, Small Clear Glass, Single Painted Band, 311-Jadite, Standard Black Cord 1000 1000 43937
63996 62859 product 0 76229 A 6 D 0 0 schoolhouse-primary-LED-cord-pendant-large-clear-glass-300-dark-green-fern-green-chevron-cord.jpg Primary LED Schoolhouse, 300-Dark Green, Large Clear Glass, Fern Green Chevron Cloth Cord 1000 1000 76229
64123 64907 product 0 76356 A 6 C 0 0 DTISAN~V.JPG Drum Schoolhouse Pendant, Opaque Glass, 105-Textured Black 3500 2434 76356
62043 64907 product 0 74276 A 7 C 0 0 Drum_Schoolhouse_Pendant_Opaque_995-RawCopperFitter_SBK_PB8_100-Black.jpeg Drum Schoolhouse Pendant, 995-Natural Raw Copper, Opaque Glass, Four Painted Band, 100-Black, SBK-Standard Black Cord | Courtesy of Chelsey Keeley 1500 1819 74276
62044 64907 product 0 74277 A 8 C 0 0 Drum_Schoolhouse_Pendant_Opaque_995-RawCopperFitter_SBK_PB8_100-Black2.jpeg Drum Schoolhouse Pendant, 995-Natural Raw Copper, Opaque Glass, Four Painted Band, 100-Black, SBK-Standard Black Cord | Courtesy of Chelsey Keeley 1500 2000 74277
65917 64907 product 0 78150 A 8 C 0 0 IMG_9895-residential-interior-lighting-Drum-Schoolhouse-Pendant-Opaque-105-Textured-Black-CSBB-Black-Brown-Chevron-PB8-Four-Painted-Bands-715-Delphite-Blue.JPG Drum Schoolhouse Pendant, Opaque Glass, 105-Textured Black, Black & Brown Chevron Cord, PB8-Four Painted Bands, 715-Delphite | Photo Courtesy of Mermaid Cottages, Tybee Island 2804 3471 78150
67203 62859 product 0 79436 A 8 C 0 0 residential-interior-lighting-on-Primary-Schoolhouse-LED-Pendant-Small-Opaque-106-Matte-Black-Black-and-White-Cloth-Cord-PB3-Triple-Painted-Band-100-Black.jpg Primary LED Schoolhouse Pendant, Small Opaque, 106-Matte Black, Black and White Cloth Cord, Triple Painted Band, 100-Black | Customer Submission 1500 2000 79436
68743 61322 product 0 80976 A 8 C 0 0 IGREF8~F.JPG Primary Schoolhouse Pendant, Large, Opaque, Standard White Cord, 480-Blush Pink, 3 Painted Bands | Customer Submission 3673 2755 80976
67296 61322 product 0 79529 A 9 C 0 0 IMG_4576-residential-interior-lighting-kitchen-sink-Primary-Schoolhouse-Pendant-Small-Opaque-311-Jadite-SWH-PB3-311-Jadite.JPG Primary Schoolhouse Pendant Light, Small Opaque, 311-Jadite, Standard White Cord, 3 Painted Bands, 311-Jadite | Photo Courtesy of Sara McDaniel of Simply Southern Cottage and Hector Sanchez Photography 2831 4032 79529
32470 61322 product 0 44703 A 10 C 0 0 elementary_schoolhouse_pendant_200_white_large_opaque_double_blk_band_CSBW2.jpg (2) Primary Schoolhouse Pendant Lights, 200-White, Large Opaque Glass, Double Painted Band, 100-Black, CSBW-Black & White Cloth Cords | Photo Courtesy of Homeowner (Also Shown: Mascot Schoolhouse Sconce above kitchen sink) 1500 1125 44703
61404 61322 product 0 73637 A 11 C 0 0 Primary_Schoolhouse_Cord_Pendant_Light_-_Galvanized_Barn_Light_Electric_-_Kitchen_Farmhouse_Lighting.jpg Primary Schoolhouse Pendant Lights, 975-Galvanized, Small Opaque Glass, Triple Painted Band in 700-Royal Blue, CSB-Black Cloth Cord | Photo Courtesy of Customer 1500 971 73637
61790 61322 product 0 74023 A 12 C 0 0 Primary_Schoolhouse_Pendant_Light_-_Galvanized_Barn_Light_Electric_-_Modern_Dining_Room_Lighting.jpg Primary Schoolhouse Pendant Lights, 975-Galvanized, Large Opaque Glass, Black Cotton Twist Cords | Photo Courtesy of Hill House Design 1500 1220 74023
61403 61322 product 0 73636 A 13 C 0 0 Primary_Schoolhouse_Cord_Pendant_-_Galvanized_Barn_Light_Electric_-_Kitchen_Lighting.jpg Primary Schoolhouse Pendant Lights, 975-Galvanized, Small Opaque Glass, Triple Painted Band in 700-Royal Blue, CSB-Black Cloth Cord | Photo Courtesy of Customer 1500 2000 73636
60077 61322 product 0 72310 A 14 C 0 0 Primary_Schoolhouse_Cord_Pendant_Galvanized_-_Barn_Light_Electric_-_Modern_Farmhouse_Bathroom_Decor.jpg Primary Schoolhouse Pendant Light, 975-Galvanized Fitter, Large Opaque Glass, Single Painted Band in 100-Black, CSB-Black Cloth Cord | Photo Courtesy of Ashley Schoenith -Heirloomed Collection 1500 2250 72310
56898 61322 product 0 69131 A 15 C 0 0 Primary_Schoolhouse_Pendant_-_100_Black_Barn_Light_Electric_-_Hallway_Decorative_Lighting.jpg Primary Schoolhouse Pendant Lights, 100-Black, Small Opaque Glass, No Painted Band, CSB-Black Cloth Cord | Photo Courtesy of Customer 1500 1500 69131
61834 61322 product 0 74067 A 16 C 0 0 Primary_Schoolhouse_Pendant_Light_-_100_Black_Barn_Light_Electric_-_Dramatic_Bedroom_Lighting.jpg Primary Schoolhouse Pendant Lights, 100-Black, Large Clear Glass, SBK-Standard Black Cord | Photo Courtesy of Caldera Design Build 1500 2250 74067
61405 61322 product 0 73638 A 17 C 0 0 Primary_Schoolhouse_Pendant_Light_-_975_Galvanized_Barn_Light_Electric_-_Farmhouse_Lighting.jpg Primary Schoolhouse Pendant Lights, 975-Galvanized, Small Opaque Glass, Triple Painted Band in 700-Royal Blue, CSB-Black Cloth Cord | Photo Courtesy of Customer 1500 2000 73638
60076 61322 product 0 72309 A 18 C 0 0 Primary_Schoolhouse_Galvanized_Pendant_-_Barn_Light_Electric_-_Modern_Farmhouse_Bathroom_Lighting.jpg Primary Schoolhouse Pendant Light, 975-Galvanized Fitter, Large Opaque Glass, Single Painted Band in 100-Black, CSB-Black Cloth Cord | Photo Courtesy of Ashley Schoenith -Heirloomed Collection 1500 2250 72309
32332 61322 product 0 44565 A 19 C 0 0 schoolhouse_pendant_lights.jpg Primary Schoolhouse Pendant Light, 997-Natural Raw Brass, Small Opaque Glass, Single Painted Band, 100-Black | Photo Courtesy of Melissa Maria and Architectural Digest 797 1024 44565
61713 61322 product 0 73946 A 20 C 0 0 Primary_Schoolhouse_Pendant_Light_-_Barn_Light_Electric_-_480_Blush_Pink.jpg Primary Schoolhouse Pendant Lights, 480-Blush Pink Fitter and Canopy, Large Opaque Glass, Triple Painted Band in 480-Blush Pink, SWH-Standard White Cord | Photo Courtesy of Customer 1500 2000 73946
61833 61322 product 0 74066 A 21 C 0 0 Primary_Schoolhouse_Pendant_Light_-_100_Black_Barn_Light_Electric_-_Bedroom_Lighting.jpg Primary Schoolhouse Pendant Lights, 100-Black, Large Clear Glass, SBK-Standard Black Cord | Photo Courtesy of Caldera Design Build 1500 1000 74066
61789 61322 product 0 74022 A 22 C 0 0 Primary_Schoolhouse_Pendant_Light_-_975_Galvanized_Barn_Light_Electric_-_Dining_Room_Lighting.jpg Primary Schoolhouse Pendant Lights, 975-Galvanized, Large Opaque Glass, Black Cotton Twist Cords | Photo Courtesy of Hill House Design 1500 2000 74022
31963 61322 product 0 44196 A 23 C 0 0 Primary_Schoolhouse_Cord_Hung_Light_995_Raw_Copper.jpg (3) Primary Schoolhouse Pendant Light, 995-Natural Raw Brass, Small Clear Glass, Triple Painted Band, 100-Black, CSBW-Black & White Cloth Cord | Photo Courtesy of Claire Esparros 1500 943 44196
31973 61322 product 0 44206 A 24 C 0 0 The_Elementary_Schoolhouse_Cord_Hung_Light_200white_htux-a5.jpg (3) Primary Schoolhouse Pendant Lights, 200-White, Large Opaque Glass, No Painted Band, CMG-Grey Cotton Cord | Photo Courtesy of Shelton Design/Build and Laura Petrilla Photography 1500 1000 44206
64620 61322 product 0 76853 A 25 C 0 0 2V3A9929-Schoolhouse-Custom-Wall-Lights-Citywalk-Breadbox.jpg Primary Schoolhouse Pendant Light, 975-Galvanized, Large Opaque Glass, Single Painted Band, 400-Barn Red, White Cloth Cord 3840 5760 76853
32526 61322 product 0 44759 A 26 C 0 0 kitchen_pendants-576x768.jpg Primary Schoolhouse Pendant Light, 100-Black, Small Opaque Glass, Triple Painted Band, SBK-Standard Black Cord | Photo Courtesy of of Alpenglow Interiors 576 768 44759
32331 61322 product 0 44564 A 27 C 0 0 schoolhouse_lights.jpg Primary Schoolhouse Cord Hung Light, 997-Natural Raw Brass, Small Opaque Glass, Single Painted Band, 100-Black, SBK-Standard Black Cord | Photo Courtesy of Melissa Maria and Architectural Digest 733 1024 44564
28332 61322 product 0 40525 A 28 C 0 0 schoolhouse_lights_kitchen_-689x768.jpg (2) Primary Schoolhouse Pendant Lights, 975-Galvanized, Small Opaque Glass, No Painted Band, SBK-Standard Black Cord | Photo Courtesy of Customer 689 768 40525
16767 61322 product 0 28333 A 29 C 0 0 side_dining_room_table_schoolhouse.jpg Primary Schoolhouse Pendant Light, 975-Galvanized, Small Opaque Glass, Single Painted Band, 311-Jadite, SBK-Standard Black Cord 600 900 28333
17201 61322 product 0 28758 A 30 C 0 0 schoolhouse_lighting136666281251759e9c70169.jpg Left: Large Opaque Glass with a Single Painted Band in 500-Buttery Yellow (Middle) Elementary Schoolhouse Cord Hung Light, Small Opaque Glass, 600-Bronze Fitter Finish, SBK-Standard Black Cord, Single Painted Band in 311-Jadite (Right) The Primary Schoolhouse Stem Mount Light, Small Opaque Glass, Fitter & Stem in 500-Barn Red Finish, Double Painted Band in 500-Barn Red 600 900 28758
60378 61322 product 0 72611 A 31 C 0 0 Primary_Schoolhouse_Pendant_Light_-_975_Galvanized_Barn_Light_Electric_-_Kitchen_Lighting.jpg Primary Schoolhouse Pendant Lights, 975-Galvanized, Large Opaque Glass, Double Painted Band in 400-Barn Red, CSB-Black Cloth Cord | Photo Courtesy of Customer 1500 1732 72611
65478 61322 product 0 77711 A 32 C 0 0 commercial-interior-restaurant-diner-lighting-Primary-Schoolhouse-Pendant-Large-Opaque-975-Galvanized-Triple-Painted-Band-390-Teal-SBK_oj80-az.jpg Primary Schoolhouse Pendant, Large Opaque Glass, 975-Galvanized, Triple Painted Band, 390-Teal, Standard Black Cord | Photo Courtesy of Livingston's Soda Fountain 1500 2000 77711
65480 61322 product 0 77713 A 33 C 0 0 commercial-interior-restaurant-diner-lighting-Primary-Schoolhouse-Pendant-Large-Opaque-975-Galvanized-Triple-Painted-Band-390-Teal-SBK.jpg Primary Schoolhouse Pendant, Large Opaque Glass, 975-Galvanized, Triple Painted Band, 390-Teal, Standard Black Cord | Photo Courtesy of Livingston's Soda Fountain 1500 1298 77713