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 (61329, 64875, 64902, 64909) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00078

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": 43,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (61329,64875,64902,64909)"
        }
      }
    },
    "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
15390 61329 product 0 26837 A 0 D 0 0 schoolhouse-primary-semi-flush-pendant-small-opaque-glass-999-oil-rubbed-copper.jpg Primary Schoolhouse Semi-Flush Mount Light, 999-Natural Oil-Rubbed Copper, Small Opaque Glass 1000 1000 26837
47927 64875 product 0 60160 A 0 D 0 0 schoolhouse-globe-flush-semi-opaque-stripe-none-copper-weathered.jpg Round Semi-Flush, 996-Natural Weathered Copper, Opaque Glass, No Painted Band 1000 1000 60160
31711 61329 product 0 43944 A 1 D 0 0 schoolhouse-primary-semi-flush-pendant-large-clear-glass-400-barn-red-triple-painted-band.jpg Primary Schoolhouse Semi-Flush Mount Light, 400-Barn Red, Large Clear Glass, Triple Painted Band 1000 1000 43944
46904 64909 product 0 59137 A 1 D 0 0 schoolhouse-drum-flush-opaque-stripe-none-buttery-yellow.jpg Drum Flush Mount, 500-Buttery Yellow, Opaque Glass, No Painted Band 1000 1000 59137
47814 64902 product 0 60047 A 1 D 0 0 schoolhouse-acorn-flush-semi-opaque-stripe-PB5-charcoal-granite-jadite.jpg Acorn Semi-Flush, 805-Charcoal Granite, Opaque Glass, Three Painted Band, 311-Jadite 1000 1000 60047
47929 64875 product 0 60162 A 1 D 0 0 schoolhouse-globe-flush-semi-opaque-stripe-PB10-emerald-green.jpg Round Semi-Flush, 307-Emerald Green, Opaque Glass, Two Painted Band, 307-Emerald Green 1000 1000 60162
31710 61329 product 0 43943 A 2 D 1 1781 schoolhouse-primary-semi-flush-pendant-large-opaque-glass-997-raw-brass-307-emerald-green-double-painted-band.jpg Primary Schoolhouse Semi-Flush Mount Light, 997-Natural Raw Brass, Large Opaque Glass, Double Painted Band, 307-Emerald Green 1000 1000 43943
46905 64909 product 0 59138 A 2 D 0 0 schoolhouse-drum-flush-clear-stripe-PB8-jadite-bulb-chrome.jpg Drum Flush Mount, 311-Jadite, Clear Glass, Four Painted Band, 311-Jadite, Shown with G30 Half-Chrome Bulb 1000 1000 59138
47815 64902 product 0 60048 A 2 D 0 0 schoolhouse-acorn-flush-semi-opaque-stripe-PB4-royal-blue.jpg Acorn Semi-Flush, 700-Royal Blue, Three Painted Band, 700-Royal Blue 1000 1000 60048
47930 64875 product 0 60163 A 2 D 0 0 schoolhouse-globe-flush-semi-opaque-stripe-PB12-brass-raw-black.jpg Round Semi-Flush, 997-Natural Raw Brass, Opaque Glass, Four Painted Band, 100-Black 1000 1000 60163
15394 61329 product 0 26841 A 3 D 0 0 schoolhouse-primary-semi-flush-pendant-small-clear-glass-200-white-single-painted-band.jpg Primary Schoolhouse Semi-Flush Mount Light, 200-White, Small Clear Glass, Single Painted Band 1000 1000 26841
46906 64909 product 0 59139 A 3 D 0 0 schoolhouse-drum-flush-opaque-stripe-PB7-delphite.jpg Drum Flush Mount, 715-Delphite Blue, Opaque Glass, Single Painted Band, 715-Delphite Blue 1000 1000 59139
47816 64902 product 0 60049 A 3 D 0 0 schoolhouse-acorn-flush-semi-opaque-stripe-none-oil-rubbed-bronze.jpg Acorn Semi-Flush, 615-Oil-Rubbed Bronze, Opaque Glass, No Painted Band 1000 1000 60049
47932 64875 product 0 60165 A 3 D 0 0 schoolhouse-globe-flush-semi-clear-stripe-PB11-black-bulb-G30.jpg Round Semi-Flush, 100-Black, Clear Glass, Three Painted Band, 100-Black, Shown with G30 Bulb 1000 1000 60165
15392 61329 product 0 26839 A 4 D 0 0 schoolhouse-primary-semi-flush-pendant-small-clear-glass-805-charcoal-granite-480-blush-pink-triple-painted-band.jpg Primary Schoolhouse Semi-Flush Mount Light, 805-Charcoal Granite, Small Clear Glass, Triple Painted Band, 480-Blush Pink 1000 1000 26839
46908 64909 product 0 59141 A 4 D 0 0 schoolhouse-drum-flush-clear-stripe-none-galvanized-bulb-1890.jpg Drum Flush Mount, 975-Galvanized, Clear Glass, No Painted Band, Shown with 1890 Edison Style Bulb 1000 1000 59141
47819 64902 product 0 60052 A 4 D 0 0 schoolhouse-acorn-flush-semi-clear-stripe-PB4-copper-raw-black-bulb-G30.jpg Acorn Semi-Flush, 995-Natural Raw Brass, Clear Glass, Three Painted Band, 100-Black, Shown with G30 Bulb 1000 1000 60052
47933 64875 product 0 60166 A 4 D 0 0 schoolhouse-globe-flush-semi-clear-stripe-none-galvanized-bulb-round.jpg Round Semi-Flush, 975-Galvanized, Clear Glass, No Painted Band, Shown with G40 Bulb 1000 1000 60166
46909 64909 product 0 59142 A 5 D 0 0 schoolhouse-drum-flush-clear-stripe-PB9-black-bulb-chrome.jpg Drum Flush Mount, 100-Black, Clear Glass, Seven Painted Band, 100-Black, Shown with G30 Half-Chrome Bulb 1000 1000 59142
47817 64902 product 0 60050 A 5 D 0 0 schoolhouse-acorn-flush-semi-opaque-stripe-PB6-galvanized-delphite.jpg Acorn Semi-Flush, 975-Galvanized, Opaque Glass, Five Painted Band, 715-Delphite 1000 1000 60050
47931 64875 product 0 60164 A 5 D 0 0 schoolhouse-globe-flush-semi-clear-stripe-PB10-delphite-bulb-1890.jpg Round Semi-Flush, 715-Delphite Blue, Clear Glass, Two Painted Band, 715-Delphite Blue, Shown with 1890 Edison Bulb 1000 1000 60164
61198 64902 product 0 73431 A 5 D 0 0 schoolhouse-acorn-flush-semi-clear-stripe-PB6-lavender-white-bulb-1890.jpg Acorn Semi-Flush, 790-Lavender, Clear Glass, Five Painted Band, 200-White, Shown with Edison 1890 Era Bulb 1000 1000 73431
61199 64902 product 0 73432 A 5 D 0 0 schoolhouse-acorn-flush-semi-clear-stripe-PB5-dark-green-black-bulb-round.jpg Acorn Semi-Flush, 300-Dark Green, Clear Glass, Three Painted Band, 100-Black, Shown with G40 Bulb 1000 1000 73432
71116 61329 product 0 83349 A 5 D 0 0 schoolhouse-primary-semi-flush-pendant-large-clear-glass-996-weathered-copper.jpg Primary Schoolhouse Semi-Flush Mount Light, 996-Natural Weathered Copper, Large Clear Glass 1000 1000 83349
15391 61329 product 0 26838 A 6 D 0 0 schoolhouse-primary-semi-flush-pendant-small-opaque-glass-500-buttery-yellow-double-painted-band.jpg Primary Schoolhouse Semi-Flush Mount Light, 500-Buttery Yellow, Small Opaque Glass, Double Painted Band 1000 1000 26838
60053 64875 product 0 72286 A 6 C 0 0 Round_Schoolhouse_Semi-Flush_Mount_Pendant_-_300_Dark_Green_Barn_Light_Electric_-_Vintage_Kitchen_Lighting.jpg Round Semi-Flush, 307-Emerald Green Fitter, Opaque Glass, Four Painted Band in 307-Emerald Green | Photo Courtesy of Chris Rune 1500 2559 72286
64292 64909 product 0 76525 A 6 C 0 0 image8-residential-interior-bathroom-lighting-Drum-Schoolhouse-Flush-Mount-Opaque-705-Navy-PB8-Four-Painted-Bands-705-Navy_-_copy.jpeg Drum Flush Mount, Opaque, 705-Navy, PB8-Four Painted Bands, 705-Navy | Photo Courtesy of Homeowner 1484 1213 76525
53791 61329 product 0 66024 A 7 C 1 0 residential_intermediate_schoolhouse_semi_flush_mount_light_clear_glass_hallway_light_up_close__2_.jpg Primary Schoolhouse Semi-Flush Mount Light, 975-Galvanized, Large Clear Glass | Photo Courtesy of Kristi from Making It In The Mountains 800 1200 66024
60054 64875 product 0 72287 A 7 C 0 0 Round_Schoolhouse_Semi_Flush_Mount_Pendant_-_Barn_Light_Electric_-_Kitchen_Lighting.jpg Round Semi-Flush, 307-Emerald Green Fitter, Opaque Glass, Four Painted Band in 307-Emerald Green | Photo Courtesy of Chris Rune 1500 2667 72287
65908 64909 product 0 78141 A 7 C 0 0 image4-residential-interior-lighting-bedroom-kid-Drum-Schoolhouse-Flush-Mount-Opaque-400-Barn-Red-PB8-Four-Painted-Band-400-Barn-Red.jpeg Drum Flush Mount, Opaque Glass, 400-Barn Red, PB4-Four Painted Bands, 400-Barn Red | Customer Submission 3024 4032 78141
60055 64875 product 0 72288 A 8 C 0 0 Round_Schoolhouse_Semi_Flush_Mount_Pendant_-_Barn_Light_Electric_-_Vintage_Inspired_Kitchen_Lighting.jpg Round Semi-Flush, 307-Emerald Green Fitter, Opaque Glass, Four Painted Band in 307-Emerald Green | Photo Courtesy of Chris Rune 1500 2481 72288
61787 61329 product 0 74020 A 8 C 0 0 Primary_Schoolhouse_Semi-Flush_Mount_Pendant_-_975_Galvanized_Barn_Light_Electric_-_Kitchen_Lighting.jpg Primary Schoolhouse Semi-Flush Mount Light, 975-Galvanized, Large Opaque Glass | Photo Courtesy of Hill House Design 1500 2000 74020
64293 64909 product 0 76526 A 8 C 0 0 image6-residential-interior-bathroom-lighting-Drum-Schoolhouse-Flush-Mount-Opaque-705-Navy-PB8-Four-Painted-Bands-705-Navy.jpeg Drum Flush Mount, Opaque, 705-Navy, PB8-Four Painted Bands, 705-Navy | Photo Courtesy of Homeowner 1329 1515 76526
60056 64909 product 0 72289 A 9 C 0 0 Drum_Schoolhouse_Semi-Flush_Mount_Light_-_Barn_Light_Electric_-_Kitchen_Lighting.jpg Drum Flush Mount, 307-Emerald Green Fitter, Opaque Glass, Four Painted Band in 307-Emerald Green | Photo Courtesy of Chris Rune 2268 4032 72289
60779 61329 product 0 73012 A 9 C 0 0 Primary_Schoolhouse_Semi-Flush_Mount_Pendant_Light_-_975_Galvanized_Barn_Light_Electric_-_Kids_Bedroom_Lighting.jpg Primary Schoolhouse Semi-Flush Mount Light, 975-Galvanized, Large Opaque Glass, Triple Painted Bands in 400-Barn Red | Photo Courtesy of Lara Anderson (@3nutshells) and Klugmann Media 1500 1000 73012
53792 61329 product 0 66025 A 10 C 1 0 residential_intermediate_schoolhouse_semi_flush_mount_light_clear_glass_hallway_light.jpg Primary Schoolhouse Semi-Flush Mount Light, 975-Galvanized, Large Clear Glass | Photo Courtesy of Kristi from Making It In The Mountains 800 1200 66025
53738 61329 product 0 65971 A 12 C 1 0 Primary-Schoolhouse-Flush-Mount-Light-Lauren-McBride-Home-Entryway.png Primary Schoolhouse Semi-Flush Mount Light, 100-Black, Small Opaque Glass, Double Painted Bands | Photo Courtesy of Lauren McBride 1096 1314 65971
61788 61329 product 0 74021 A 13 C 0 0 Primary_Schoolhouse_Semi-Flush_Mount_Pendant_Light_-_975_Galvanized_Barn_Light_Electric_-_Interior_Lighting.jpg Primary Schoolhouse Semi-Flush Mount Light, 975-Galvanized, Large Opaque Glass | Photo Courtesy of Hill House Design 1500 2265 74021
59676 61329 product 0 71909 A 17 C 0 0 Primary_Schoolhouse_Semi-Flush_Pendant_-_400_Barn_Light_Electric_-_Farmhouse_Vintage_Kitchen_DIning_Room_Lighting.jpg Primary Schoolhouse Semi-Flush Mount Light, 400-Barn Red, Large Opaque Glass, Triple Painted Bands in 400-Barn Red | Photo Courtesy of Homeowner 1500 1969 71909
57076 61329 product 0 69309 A 19 C 0 0 Primary_Schoolhouse_Flush_Mount_Pendant_Light_-_400_Barn_Red_Barn_Light_Electric_-_Farmhouse_Barn_Home_Kitchen_Lighting.jpg Primary Schoolhouse Semi-Flush Mount Light, 400-Barn Red, Small Opaque Glass, Triple Painted Bands | Photo Courtesy April Hershberger (@barnhomeliving) 1500 2000 69309
57206 61329 product 0 69439 A 21 C 1 0 Primary_Schoolhouse_Semi-Flush_Mount_Pendant_Light_-_Barn_Light_Electric_-_Bedroom_Lighting.jpg Primary Schoolhouse Semi-Flush Mount Light, 100-Black, Small Clear Glass | Photo Courtesy of Morgan (@thewhitefarmhouseblog) 450 600 69439
18201 61329 product 0 29830 A 22 C 1 1782 intermediate_schoolhouse_semiflush_mount.jpg Primary Schoolhouse Semi-Flush Mount Light, 975-Galvanized, Small Opaque Glass, Single Painted Band, 100-Black | Photo Courtesy of Khanh Morales 540 720 29830
56277 61329 product 0 68510 A 23 C 1 0 Barn_Light_Electric_-_Primary_Schoolhouse_Semi-Flush_Mount_Pendant_-_975_Galvanized_Bathroom_Farmhouse_Lighting.jpg Primary Schoolhouse Semi-Flush Mount 975-Galvanized, Small Opaque Glass, Double Painted Band in 400-Barn Red | Photo Courtesy of Keri Petersen of KP Spaces 1500 2000 68510