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

Query time 0.00088

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": 46,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (62861,64871,64900,64906)"
        }
      }
    },
    "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
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
47887 64906 product 0 60120 A 0 D 0 0 schoolhouse-drum-stem-opaque-stripe-PB8-brass-raw-black.jpg Drum Stem Mount, 997-Natural Raw Brass, Opaque Glass, Four Painted Band, 100-Black, Mounting in 997-Natural Raw Brass 1000 1000 60120
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
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
47889 64906 product 0 60122 A 1 D 0 0 schoolhouse-drum-stem-clear-stripe-none-red-bulb-round.jpg Drum Stem Mount, 400-Barn Red, Clear Glass, No Stripe, Mounting in 400-Barn Red, Shown with G40 Bulb 1000 1000 60122
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
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
47890 64906 product 0 60123 A 2 D 0 0 schoolhouse-drum-stem-clear-stripe-PB8-charcoal-granite-black-bulb-chrome.jpg Drum Stem Mount, 805-Charcoal Granite, Clear Glass, Four Painted Band, Shown with G40 Half-Chrome Bulb 1000 1000 60123
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
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
47891 64906 product 0 60124 A 3 D 0 0 schoolhouse-drum-stem-clear-stripe-PB9-brass-weathered-delphite-bulb-1890.jpg Drum Stem Mount, 998-Natural Weathered Brass, Clear Glass, Seven Painted Band, 715-Delphite Blue, Mounting in 998-Natural Weathered Brass, Shown with 1890 Edison Bulb 1000 1000 60124
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
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
64104 64906 product 0 76337 A 4 D 0 0 schoolhouse-drum-stem-clear-stripe-PB7-dark-green-black-bulb-G30.jpg Drum Stem Mount, 300-Dark Green, Clear Glass, Single Painted Band, 100-Black, Shown with G30 Bulb 1000 1000 76337
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
47893 64906 product 0 60126 A 5 D 0 0 schoolhouse-drum-stem-opaque-stripe-none-copper-oil-rubbed.jpg Drum Stem Mount, 999-Natural Oil-Rubbed Copper, Opaque Glass, No Stripe, Mounting in 999-Natural Oil-Rubbed Copper 1000 1000 60126
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
54837 64906 product 0 67070 A 6 C 0 0 primary_schoolhouse_12indrum_blackbands_975_galvanized_12instem5.jpg Drum Stem Mount, 975-Galvanized Stem, Opaque Glass, Four Painted Band, 100-Black | Photo Courtesy of the Brownstone Boys 1500 2250 67070
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
54836 64906 product 0 67069 A 7 C 0 0 primary_schoolhouse_12indrum_blackbands_975_galvanized_12instem2.jpg Drum Stem Mount, 975-Galvanized Stem, Opaque Glass, Four Painted Band, 100-Black | Photo Courtesy of the Brownstone Boys 1500 2250 67069
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
54838 64906 product 0 67071 A 8 C 0 0 primary_schoolhouse_12indrum_blackbands_975_galvanized_12instem7.jpg Drum Stem Mount, 975-Galvanized Stem, Opaque Glass, Four Painted Band, 100-Black | Photo Courtesy of the Brownstone Boys 1500 2250 67071
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
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
63159 64906 product 0 75392 A 9 C 0 0 image1__2_-residential-interior-Drum-Schoolhouse-Stem-Mount-Pendant-Light-Opaque-705-Navy-Single-Band-705-Navy.jpeg Drum Stem Mount, 705-Navy, Opaque Glass, Single Painted Band 1500 1769 75392
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
65108 64906 product 0 77341 A 10 C 0 0 residential-interior-kitchen-lighting-Drum-Schoolhouse-Stem-Mount-Pendant-Clear-Glass-997-Raw-Brass-18in-Four-Painted-Bands-715-Delphite-Blue.jpg Drum Stem Mount, Clear Glass, 997-Raw Brass Stem (18"), Four Painted Bands, 715-Delphite | Photo Courtesy of Homeowner 1500 2000 77341
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
65109 64906 product 0 77342 A 11 C 0 0 residential-interior-kitchen-lighting-on-Drum-Schoolhouse-Stem-Mount-Pendant-Clear-Glass-997-Raw-Brass-18in-Four-Painted-Bands-715-Delphite-Blue_2fvx-c1.jpg Drum Stem Mount, Clear Glass, 997-Raw Brass Stem (18"), Four Painted Bands, 715-Delphite | Photo Courtesy of Homeowner 1500 2000 77342
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
65110 64906 product 0 77343 A 12 C 0 0 residential-interior-kitchen-lighting-on-Drum-Schoolhouse-Stem-Mount-Pendant-Clear-Glass-997-Raw-Brass-18in-Four-Painted-Bands-715-Delphite-Blue.jpg Drum Stem Mount, Clear Glass, 997-Raw Brass Stem (18"), Four Painted Bands, 715-Delphite | Photo Courtesy of Homeowner 1500 1683 77343
66465 64906 product 0 78698 A 12 C 0 0 IMG_0843-residential-interior-lighting-Drum-Schoolhouse-Stem-Mount-Pendant-opaque-100-black-24in-stem-PB8-Four-Painted-Band-100-Black.jpg Drum Stem Mount, Opaque Glass, 100-Black, 24" Stem, PB8-Four Painted Band, 100-Black | Customer Submission 3024 4032 78698
66837 64906 product 0 79070 A 12 C 0 0 image1-residential-interior-lighting-kitchen-Drum-Schoolhouse-Stem-Mount-Pendant-Opaque-100-Black-12in-stem-PB9-Seven-Painted-Band-100-Black-Standard-Beehive-Canopy.jpeg Drum Stem Mount, Opaque, 100-Black, 12" Stem, Seven Painted Band, 100-Black, Standard Beehive Canopy | Customer Submission 3024 4032 79070
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