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 (62861, 64900, 61326, 64871) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00171

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": 59,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (62861,64900,61326,64871)"
        }
      }
    },
    "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
15379 61326 product 0 26826 A 0 D 0 0 schoolhouse-primary-stem-pendant-small-clear-glass-705-navy-single-painted-band.jpg Primary Schoolhouse Stem Mount, 705-Navy, Small Clear Glass, Single Painted Band 1000 1000 26826
23212 62861 product 0 35127 A 0 D 0 0 schoolhouse-primary-LED-stem-pendant-small-opaque-glass-307-emerald-green-double-painted-band.jpg Primary LED Schoolhouse Stem Mount, 307-Emerald Green, Small Opaque Glass, Double Painted Band 1000 1000 35127
47821 64900 product 0 60054 A 0 D 0 0 schoolhouse-acorn-stem-opaque-stripe-none-copper-raw.jpg Acorn Stem Mount, 995-Natural Raw Brass, Opaque Glass, No Stripe 1000 1000 60054
47945 64871 product 0 60178 A 0 D 0 0 schoolhouse-globe-stem-clear-stripe-none-copper-weathered-bulb-G30.jpg Round Stem Mount, 996-Natural Weathered Copper, Clear Globe, No Painted Band, Mounting in 996-Natural Weathered Bulb, Shown with G30 Bulb 1000 1000 60178
15380 61326 product 0 26827 A 1 D 0 0 schoolhouse-primary-stem-pendant-large-opaque-glass-999-oil-rubbed-copper-hex-cover-311-jadite-single-painted-band-alt.jpg Primary Schoolhouse Stem Mount, 999-Natural Oil-Rubbed Copper, Large Opaque Glass, Single Painted Band, 311-Jadite 1000 1000 26827
23213 62861 product 0 35128 A 1 D 0 0 schoolhouse-primary-LED-stem-pendant-large-opaque-glass-805-charcoal-granite-500-buttery-yellow-triple-painted-band.jpg Primary LED Schoolhouse Stem Mount, 805-Charcoal Granite, Large Opaque Glass, Triple Painted Band, 500-Buttery Yellow 1000 1000 35128
47822 64900 product 0 60055 A 1 D 0 0 schoolhouse-acorn-stem-opaque-stripe-PB5-chartreuse-black.jpg Acorn Stem Mount, 380-Chartreuse, Opaque Glass, Three Painted Band, 100-Black 1000 1000 60055
23214 62861 product 0 35129 A 2 D 0 0 schoolhouse-primary-LED-stem-pendant-small-clear-glass-996-weathered-copper-hex-cover-100-black-triple-painted-band.jpg Primary LED Schoolhouse Stem Mount, 996-Natural Weathered Copper, Small Clear Glass, Triple Painted Band, 100-Black 1000 1000 35129
31696 61326 product 0 43929 A 2 D 0 0 schoolhouse-primary-stem-pendant-large-clear-glass-200-white.jpg Primary Schoolhouse Stem Mount, 200-White, Large Clear Glass 1000 1000 43929
47823 64900 product 0 60056 A 2 D 0 0 schoolhouse-acorn-stem-opaque-stripe-PB5-galvanized-royal-blue.jpg Acorn Stem Mount, 975-Galvanized, Opaque Glass, Three Painted Band, 700-Royal Blue 1000 1000 60056
47947 64871 product 0 60180 A 2 D 0 0 schoolhouse-globe-stem-opaque-stripe-PB11-navy-delphite.jpg Round Stem Mount, 705-Navy, Opaque Glass, Three Painted Band, 715-Delphite Blue, Mounting in 705-Navy 1000 1000 60180
31701 61326 product 0 43934 A 3 D 0 0 schoolhouse-primary-stem-pendant-large-opaque-glass-805-charcoal-granite-500-buttery-yellow-triple-painted-band.jpg Primary Schoolhouse Stem Mount, 805-Charcoal Granite, Large Opaque Glass, Triple Painted Band, 500-Buttery Yellow 1000 1000 43934
31730 62861 product 0 43963 A 3 D 0 0 schoolhouse-primary-LED-stem-pendant-large-clear-glass-200-white.jpg Primary LED Schoolhouse Stem Mount, 200-White, Large Clear Glass 1000 1000 43963
47828 64900 product 0 60061 A 3 D 0 0 schoolhouse-acorn-stem-clear-stripe-none-copper-oil-rubbed-bulb-G30.jpg Acorn Stem Mount, 615-Oil-Rubbed Bronze, Clear Glass, No Stripe, Shown with G30 Bulb 1000 1000 60061
47948 64871 product 0 60181 A 3 D 0 0 schoolhouse-globe-stem-clear-stripe-PB12-brass-raw-black-bulb-chrome.jpg Round Stem Mount, 997-Natural Raw Brass, Four Painted Band, 100-Black, Mounting in 997-Natural Raw Brass, Shown with G40 Half-Chrome Bulb 1000 1000 60181
15378 61326 product 0 26825 A 4 D 0 0 schoolhouse-primary-stem-pendant-small-clear-glass-996-weathered-copper-hex-cover-100-black-triple-painted-band-alt.jpg Primary Schoolhouse Stem Mount, 996-Natural Weathered Copper, Small Clear Glass, Triple Painted Band, 100-Black 1000 1000 26825
31732 62861 product 0 43965 A 4 D 0 0 schoolhouse-primary-LED-stem-pendant-small-clear-glass-705-navy-single-painted-band.jpg Primary LED Schoolhouse Stem Mount, 705-Navy, Small Clear Glass, Single Painted Band 1000 1000 43965
47824 64900 product 0 60057 A 4 D 0 0 schoolhouse-acorn-stem-opaque-stripe-PB6-red.jpg Acorn Stem Mount, 400-Barn Red, Opaque Glass, Five Painted Band, 400-Barn Red 1000 1000 60057
47949 64871 product 0 60182 A 4 D 0 0 schoolhouse-globe-stem-opaque-stripe-PB10-galvanized-jadite.jpg Round Stem Mount, 975-Galvanized, Opaque Glass, Two Painted Band, 311-Jadite, Mounting in 975-Galvanized 1000 1000 60182
31731 62861 product 0 43964 A 5 D 0 0 schoolhouse-primary-LED-stem-pendant-large-opaque-glass-999-oil-rubbed-copper-hex-cover-311-jadite-single-painted-band.jpg Primary LED Schoolhouse Stem Mount, 999-Natural Oil-Rubbed Copper, Large Opaque Glass, Single Painted Band, 311-Jadite 1000 1000 43964
45079 61326 product 0 57312 A 5 C 0 0 primary__schoolhouse_stem_small_cherry_red_12instem5.jpg Primary Schoolhouse Stem Mount Light, 400-Barn Red, Small Opaque Glass, Double Painted Band | Photo Courtesy of Homeowner 1500 1125 57312
47951 64871 product 0 60184 A 5 D 0 0 schoolhouse-globe-stem-opaque-stripe-none-buttery-yellow.jpg Round Stem Mount, 500-Buttery Yellow, Opaque Glass, No Painted Band, Mounting in 500-Buttery Yellow 1000 1000 60184
31733 62861 product 0 43966 A 6 D 0 0 schoolhouse-primary-LED-stem-pendant-large-clear-glass-997-raw-brass-hex-cover-100-black-double-painted-band.jpg Primary LED Schoolhouse Stem Mount, 997-Natural Raw Brass, Large Clear Glass, Double Painted Band, 100-Black 1000 1000 43966
47825 64900 product 0 60058 A 6 D 0 0 schoolhouse-acorn-stem-clear-stripe-PB6-brass-weathered-black-bulb-chrome.jpg Acorn Stem Mount, 998-Natural Weathered Brass, Clear Glass, Five Painted Band, 100-Black, Shown with G40 Half-Chrome Bulb 1000 1000 60058
47950 64871 product 0 60183 A 6 D 0 0 schoolhouse-globe-stem-opaque-stripe-PB12-copper-oil-rubbed-chocolate.jpg Round Stem Mount, 999-Natural Oil-Rubbed Copper, Opaque Glass, Four Painted Band, 601-Chocolate, Mounting in 999-Natural Oil-Rubbed Copper 1000 1000 60183
56274 61326 product 0 68507 A 6 C 0 0 Barn_Light_Electric_-_Primary_Schoolhouse_Stem_Mount_Pendant_-_975-Galvanized_Kitchen_Lighting.jpg Primary Schoolhouse Stem Mount Light, 975-Galvanized, Small Opaque Glass, Double Painted Band in 400-Barn Red | Photo Courtesy of Keri Petersen of KP Spaces 1500 2000 68507
47826 64900 product 0 60059 A 7 D 0 0 schoolhouse-acorn-stem-clear-stripe-PB5-delphite-bulb-1890.jpg Acorn Stem Mount, 715-Delphite Blue, Clear Glass, Three Painted Band, 715-Delphite Blue, Shown with 1890 Edison Bulb 1000 1000 60059
57079 61326 product 0 69312 A 7 C 0 0 Primary_Schoolhouse_Stem_Mount_Pendant_Light_-_975_Galvanized_Barn_Light_Electric_-_Mudroom_Laundry_Room_Farmhouse_Lighting.jpg Primary Schoolhouse Stem Mount Light, 975-Galvanized, Large Opaque Glass, 12in Stem, Triple Bands in 311-Jadite | Photo Courtesy of April Hershberger (@barnhomeliving) 1500 2000 69312
59187 62861 product 0 71420 A 7 C 0 0 Primary_Schoolhouse_Wall_Sconce_and_Stem_Mount_Pendant_-_Barn_Light_Electric_-_Modern_Farmhouse_Kitchen_Lighting_1qb1-mh.jpg Primary LED Schoolhouse Stem Mount Light, 700-Royal Blue, Large Opaque Glass, 12” Stem, Double Painted Band in 700-Royal Blue, 1250 Lumen LED, 4000K Color Temperature (Also pictured: Primary Schoolhouse Wall Sconce) | Photo Courtesy Patty and Jim Berchem 1512 2016 71420
61197 64900 product 0 73430 A 7 D 0 0 schoolhouse-acorn-stem-clear-stripe-PB4-dark-green-jadite-bulb-round.jpg Acorn Stem Mount, 300-Dark Green, Clear Glass, Three Painted Band, 311-Jadite, Shown with G40 Bulb 1000 1000 73430
67765 64900 product 0 79998 A 7 C 0 0 Acorn_Schoolhouse_Sconce_Opaque_705-Navy_PB4_705-Navy_Acorn_Schoolhouse_Stem_Mount_Pendant_Opaque_705-Navy_PB4_3instem_StandardBeehive.jpg Acorn Stem Mount, Opaque, 705-Navy, Four Painted Bands, 3" Stem, Standard Beehive | Customer Submission 1162 1829 79998
67766 64900 product 0 79999 A 7 C 0 0 Acorn_Schoolhouse_Sconce_Opaque_705-Navy_PB4_705-Navy_Acorn_Schoolhouse_Stem_Mount_Pendant_Opaque_705-Navy_PB4_3instem_StandardBeehive4.jpg Acorn Stem Mount, Opaque, 705-Navy, Four Painted Bands, 3" Stem, Standard Beehive | Customer Submission 1170 2080 79999
67767 64900 product 0 80000 A 7 C 0 0 20230315_124825-residential-interior-lighting-on-Acorn-Schoolhouse-Stem-Mount-Pendant-Opaque-400-Barn-Red-6in-Stem-Five-Painted-Band-PB6-400-Barn-Red-crop.jpg Acorn Stem Mount, Opaque, 400-Barn Red, 6" Stem, Five Painted Band | Customer Submission 1639 2044 80000
32437 61326 product 0 44670 A 8 C 0 0 2-12_Inch_Primary_Schoolhouse_Stem_Mount_Lights_Small_Glass_996_Weathered_Brass_Finish_12_Inch_Stem_No_Painted_Band_5.jpg Primary Schoolhouse Stem Mount Light, 998-Natural Weathered Brass, Small Opaque Glass, No Painted Band | Photo Courtesy of My Life From Home Blog 1500 2250 44670
59188 62861 product 0 71421 A 8 C 0 0 Primary_Schoolhouse_Wall_Sconce_and_Stem_Mount_Pendant_-_Barn_Light_Electric_-_Modern_Kitchen_Lighting_4fp0-k1.jpg Primary LED Schoolhouse Stem Mount Light, 700-Royal Blue, Large Opaque Glass, 12” Stem, Double Painted Band in 700-Royal Blue, 1250 Lumen LED, 4000K Color Temperature (Also pictured: Primary Schoolhouse Wall Sconce) | Photo Courtesy Patty and Jim Berchem 1512 2016 71421
57046 61326 product 0 69279 A 9 C 0 0 Primary_Schoolhouse_Stem_Mount_Pendant_-_100_Black_Barn_Light_Electric_-_Kitchen_Island_Lighting.jpg Primary Schoolhouse Stem Mount Light, 100-Black, Small Clear Glass | Photo Courtesy of Homeowner 1500 1189 69279
59047 62861 product 0 71280 A 9 C 0 0 Primary_LED_Schoolhouse_Stem_Mount_Pendant_Light_-_Barn_Light_Electric_Restaurant_Bar_Lighting.jpg Primary LED Schoolhouse Stem Mount Light, 105-Textured Black, Large Opaque Glass, 24” Stem, Double Painted Band in 100-Black, 1250 Lumen LED, 2700K Color Temperature | Photo Courtesy of Ampersand Ice Cream 1500 1018 71280
57078 61326 product 0 69311 A 10 C 0 0 Primary_Schoolhouse_Stem_Mount_Pendant_Light_-_975_Galvanized_Barn_Light_Electric_-_Mudroom_Laundry_Room_Farmhouse_Barn_Home_Lighting.jpg Primary Schoolhouse Stem Mount Light, 975-Galvanized, Large Opaque Glass, 12in Stem, Triple Bands in 311-Jadite | Photo Courtesy of April Hershberger (@barnhomeliving) 1500 2361 69311
59045 62861 product 0 71278 A 10 C 0 0 Primary_LED_Schoolhouse_Stem_Mount_Pendant_-_Barn_Light_Electric_Commercial_Restaurant_Lighting.jpg Primary LED Schoolhouse Stem Mount Light, 105-Textured Black, Large Opaque Glass, 24” Stem, Double Painted Band in 100-Black, 1250 Lumen LED, 2700K Color Temperature | Photo Courtesy of Ampersand Ice Cream 1500 1125 71278
56275 61326 product 0 68508 A 11 C 0 0 Barn_Light_Electric_-_Primary_Schoolhouse_Stem_Mount_Pendant_-_975-Galvanized_Farmhouse_Kitchen_Lighting.jpg Primary Schoolhouse Stem Mount Light, 975-Galvanized, Small Opaque Glass, Double Painted Band in 400-Barn Red | Photo Courtesy of Keri Petersen of KP Spaces 1500 2000 68508
59044 62861 product 0 71277 A 11 C 0 0 Primary_LED_Schoolhouse_Stem_Mount_Pendant_-_Barn_Light_Electric_-_Commercial_Lighting.jpg Primary LED Schoolhouse Stem Mount Light, 105-Textured Black, Large Opaque Glass, 24” Stem, Double Painted Band in 100-Black, 1250 Lumen LED, 2700K Color Temperature | Photo Courtesy of Ampersand Ice Cream 2886 2704 71277
32506 61326 product 0 44739 A 12 C 0 0 primary_schoolhouse_stem_small_galvanized_fitter_12instem_singleteal3.jpg Primary Schoolhouse Stem Mount Light, 975-Galvanized, Small Opaque Glass, Single Painted Band, 390-Teal | Courtesy of Peggy Linsey 1500 2250 44739
59046 62861 product 0 71279 A 12 C 0 0 Primary_LED_Schoolhouse_Stem_Mount_Pendant_-_Barn_Light_Electric_-_Restaurant_Lighting.jpg Primary LED Schoolhouse Stem Mount Light, 105-Textured Black, Large Opaque Glass, 24” Stem, Double Painted Band in 100-Black, 1250 Lumen LED, 2700K Color Temperature | Photo Courtesy of Ampersand Ice Cream 3355 2983 71279
51667 61326 product 0 63900 A 13 C 0 0 primary-schoolhouse-stem-mount-600-bronze.jpg (2) Primary Schoolhouse Stem Mount Light, 600-Bronze, Small Opaque Glass, Triple Painted Band in 600-Bronze | Photo Courtesy of Making Home Interiors 1500 1004 63900
59048 62861 product 0 71281 A 13 C 0 0 Primary_LED_Schoolhouse_Stem_Mount_Pendant_-_Barn_Light_Electric_-_Dining_Room_Lighting.jpeg Primary LED Schoolhouse Stem Mount Light, 400-Barn Red, Large Opaque Glass, 24” Stem, Double Painted Band in 400-Barn Red, 1250 Lumen LED, 3500k Color Temperature | Photo Courtesy of Homeowner 454 474 71281
31974 61326 product 0 44207 A 14 C 0 0 The_Primary_Schoolhouse_Stem_Mount_Light_311-Jadite_In-Setting.jpg Primary Schoolhouse Stem Mount Light, 311-Jadite, Large Opaque Glass, Single Painted Band | Photo Courtesy of King Daddy's Restaurant in Asheville, North Carolina 1500 1906 44207
32439 61326 product 0 44672 A 15 C 0 0 Primary_Schoolhouse_Stem_Mount_Lights_Small_Glass_Weathered_Brass_Finish_12_Inch_Stem_No_Painted_Band_6.jpg (2) Primary Schoolhouse Stem Mount Lights, 998-Natural Weathered Brass, Small Opaque Glass, No Painted Band | Photo Courtesy of My Life From Home Blog 1184 1776 44672
19264 61326 product 0 30976 A 16 C 0 0 decatur_kitchen_1.jpg (2) Primary Schoolhouse Stem Mount Lights, 975-Galvanized, Large Opaque Glass, Single Painted Band, 311-Jadite (Also Shown: (3) Frontier Angle Sign Lights) | Photo Courtesy of Jennifer Lee Kessler (www.jenniferkesslerphotography.com) 1034 1280 30976
31702 61326 product 0 43935 A 17 C 0 0 IMG_1098.jpg Primary Schoolhouse Stem Mount Light, 997-Natural Raw Brass, Large Clear Glass, No Painted Band 667 1000 43935
61427 61326 product 0 73660 A 18 C 0 0 Primary_Schoolhouse_Stem_Mount_Pendant_Light_-_Barn_Light_Electric_-_Laundry_Room_Lighting.JPG Primary Schoolhouse Stem Mount Light, 705-Navy, Large Opaque Glass, Double Bands in 705-Navy | Photo Courtesy of Homeowner 1170 2080 73660
32515 61326 product 0 44748 A 19 C 0 0 schoolhouse_pendant_lighting-512x768.jpg Primary Schoolhouse Stem Mount Light, 975-Galvanized, Small Opaque Glass, Single Painted Band, 311-Jadite | Photo Courtesy of D2 Interieurs and Alexandra Rowley 512 768 44748
32525 61326 product 0 44758 A 20 C 0 0 schoolhouse_pendant_lighting-683x1024.jpg Primary Schoolhouse Stem Mount Light, 975-Galvanized, Small Opaque Glass, Single Painted Band, 311-Jadite | Photo Courtesy of Rafterhouse 683 1024 44758
18317 61326 product 0 29961 A 21 C 0 0 vintage_schoolhouse_pendants_kitchen.jpg (2) Primary Schoolhouse Stem Mount Lights, 975-Galvanized, Small Opaque Glass, Single Painted Band, 311-Jadite | Photo Courtesy of Homeowner 1024 916 29961
61428 61326 product 0 73661 A 22 C 0 0 Primary_Schoolhouse_Stem_Mount_Pendant_Light_-_Barn_Light_Electric_-_Laundry_Room_Design.JPG Primary Schoolhouse Stem Mount Light, 705-Navy, Large Opaque Glass, Double Bands in 705-Navy | Photo Courtesy of Homeowner 1170 2080 73661
35126 61326 product 0 47359 A 23 C 0 0 school-house-pendant__2_.jpg Primary Schoolhouse Stem Mount Light, 975-Galvanized, Small Opaque Glass, Single Painted Band, 311-Jadite | Photo Courtesy of Homeowner 1066 1600 47359
17200 61326 product 0 28757 A 24 C 0 0 schoolhouse_lighting.jpg 600 900 28757
32876 61326 product 0 45109 A 25 C 0 0 barn-light-electric-trendland-03-600x435.jpg Primary Schoolhouse Stem Mount Light, 975-Galvanized, Small Opaque Glass, Single Painted Band, 500-Buttery Yellow | Courtesy of Trendlands 600 435 45109
20719 61326 product 0 32548 A 26 C 0 0 distillary-schoolhouse-stem-mount.jpg Primary Schoolhouse Stem Mount Lights, Large Opaque Glass | Photos Courtesy of Richard Walker (www.richardwalkerphoto.com) 900 700 32548
28327 61326 product 0 40520 A 27 C 0 0 kitchen_pendants_schoolhouse_lights-412x768.jpg (2) Primary Schoolhouse Stem Mount Lights, 400-Barn Red, Small Opaque Glass, Double Painted Band | Photo Courtesy of Homeowner 412 768 40520