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 (61954, 64903, 64876, 64908) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00135

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": 47,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (61954,64903,64876,64908)"
        }
      }
    },
    "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
19072 61954 product 0 30779 A 0 D 0 0 schoolhouse-primary-flush-pendant-small-opaque-500-buttery-yellow-triple-painted-band.jpg Primary Schoolhouse Flush Mount Light, 500-Buttery Yellow, Triple Painted Band 1000 1000 30779
46914 64903 product 0 59147 A 0 D 0 0 schoolhouse-acorn-flush-opaque-stripe-PB5-dark-green.jpg Acorn Flush Mount, 300-Dark Green, Opaque Glass, Three Painted Band, 300-Dark Green 1000 1000 59147
46921 64876 product 0 59154 A 0 D 0 0 schoolhouse-globe-flush-opaque-stripe-PB12-oil-rubbed-bronze-chocolate.jpg Round Flush Mount, 615-Oil-Rubbed Bronze, Four Painted Band, 600-Bronze 1000 1000 59154
47898 64908 product 0 60131 A 0 D 0 0 schoolhouse-drum-flush-semi-opaque-stripe-PB9-jadite.jpg Drum Semi-Flush, 311-Jadite, Opaque Glass, Seven Painted Band, 311-Jadite 1000 1000 60131
47899 64908 product 0 60132 A 0 D 0 0 schoolhouse-drum-flush-semi-opaque-stripe-none-galvanized.jpg m Semi-Flush, 975-Galvanized, Opaque Glass, No Stripe 1000 1000 60132
46915 64903 product 0 59148 A 1 D 0 0 schoolhouse-acorn-flush-opaque-stripe-PB6-barn-red.jpg Acorn Flush Mount, 400-Barn Red, Opaque Glass, Five Painted Band, 400-Barn Red 1000 1000 59148
46922 64876 product 0 59155 A 1 D 0 0 schoolhouse-globe-flush-clear-stripe-PB11-galvanized-delphite-bulb-chrome.jpg Round Flush Mount, 975-Galvanized, Three Painted Band, 715-Delphite Blue, Shown with G40 Half-Chrome Bulb 1000 1000 59155
47900 64908 product 0 60133 A 1 D 0 0 schoolhouse-drum-flush-semi-opaque-stripe-PB7-navy.jpg Drum Semi-Flush, 705-Navy, Opaque Glass, Single Painted Band, 705-Navy 1000 1000 60133
63651 61954 product 0 75884 A 1 D 0 0 schoolhouse-primary-flush-pendant-large-clear-glass-615-oil-rubbed-bronze.jpg Primary Schoolhouse Flush Mount Light, 615-Oil-Rubbed Bronze, Large Clear Glass 1000 1000 75884
19100 61954 product 0 30807 A 2 D 0 0 schoolhouse-primary-flush-pendant-small-clear-glass-975-galvanized-715-delphite-single-painted-band.jpg Primary Schoolhouse Flush Mount Light, 975-Galvanized, Single Painted Band, 715-Delphite 1000 1000 30807
46916 64903 product 0 59149 A 2 D 0 0 schoolhouse-acorn-flush-clear-stripe-none-oil-rubbed-bronze-bulb-G30.jpg Acorn Flush Mount, 615-Oil-Rubbed Bronze, Clear Glass, No Painted Band, Shown with G30 Bulb 1000 1000 59149
46923 64876 product 0 59156 A 2 D 0 0 schoolhouse-globe-flush-opaque-stripe-none-chartreuse.jpg Round Flush Mount, 380-Chartreuse, Opaque Glass, No Painted Band 1000 1000 59156
31676 61954 product 0 43909 A 3 D 0 0 schoolhouse-primary-flush-pendant-small-clear-307-emerald-green.jpg Primary Schoolhouse Flush Mount Light, 307-Emerald Green, Small Clear Glass 1000 1000 43909
46917 64903 product 0 59150 A 3 D 0 0 schoolhouse-acorn-flush-opaque-stripe-PB5-delphite.jpg Acorn Flush Mount, 715-Delphite Blue, Opaque Glass, Three Painted Band, 715-Delphite Blue 1000 1000 59150
46924 64876 product 0 59157 A 3 D 0 0 schoolhouse-globe-flush-opaque-stripe-PB10-navy.jpg Round Flush Mount, 705-Navy, Opaque Glass, Two Painted Band, 705-Navy 1000 1000 59157
47901 64908 product 0 60134 A 3 D 0 0 schoolhouse-drum-flush-semi-clear-stripe-PB9-raw-brass-delphite-bulb-1890.jpg Drum Semi-Flush, 997-Natural Raw Brass, Opaque Glass, Seven Painted Band, 715-Delphite Blue, Shown with 1890 Edison Bulb 1000 1000 60134
31678 61954 product 0 43911 A 4 D 0 0 schoolhouse-primary-flush-pendant-large-clear-glass-975-galvanized-311-jadite-triple-painted-band.jpg Primary Schoolhouse Flush Mount Light, 975-Galvanized, Triple Painted Band, 311-Jadite 1000 1000 43911
46918 64903 product 0 59151 A 4 D 0 0 schoolhouse-acorn-flush-clear-stripe-PB6-charcoal-granite-black.jpg Acorn Flush Mount, 805-Charcoal Granite, Clear Glass, Five Painted Band, 100-Black, Shown with G40 Bulb 1000 1000 59151
46925 64876 product 0 59158 A 4 D 0 0 schoolhouse-globe-flush-clear-stripe-none-black.jpg Round Flush Mount, 100-Black, Clear Glass, No Painted Band 1000 1000 59158
47904 64908 product 0 60137 A 4 D 0 0 schoolhouse-drum-flush-semi-clear-stripe-none-oil-rubbed-copper-bulb-G30.jpg Drum Semi-Flush, 999-Natural Oil-Rubbed Copper, Clear Glass, No Stripe, Shown with G30 Bulb 1000 1000 60137
31677 61954 product 0 43910 A 5 D 0 0 schoolhouse-primary-flush-pendant-small-opaque-400-barn-bed-double-painted-band.jpg Primary Schoolhouse Flush Mount Light, 400-Barn Red, Double Painted Band 1000 1000 43910
61196 64903 product 0 73429 A 5 D 0 0 schoolhouse-acorn-flush-clear-stripe-PB5-blush-pink-white-bulb-1890.jpg Acorn Flush Mount, 380-Blush Pink, Clear Glass, Three Painted Band, 200-White, Shown with Edison 1890 Era Bulb 1000 1000 73429
64102 64908 product 0 76335 A 5 D 0 0 schoolhouse-drum-flush-semi-clear-stripe-PB7-white-black-bulb-round.jpg Drum Semi-Flush, 200-White, Clear Glass, Single Painted Band, 100-Black, Shown with G30 Bulb 1000 1000 76335
68544 64876 product 0 80777 A 5 C 0 0 204PearlAve_03-residential-interior-lighting-hallway-mudroom-dog-Round-Schoolhouse-Flush-Mount-Opaque-705-Navy-PB10-2-Painted-Band-705-Navy.jpg Round Schoolhouse Flush Mount, 705-Navy, Opaque Glass, Two Painted Band, 705-Navy | Photo Courtesy of Shelley Starr Interior Design 1500 2249 80777
31679 61954 product 0 43912 A 6 D 0 0 schoolhouse-primary-flush-pendant-large-opaque-100-black-single-painted-band.jpg Primary Schoolhouse Flush Mount Light, 100-Black, Single Painted Band 1000 1000 43912
47902 64908 product 0 60135 A 6 D 0 0 schoolhouse-drum-flush-semi-clear-stripe-PB9-red-bulb-chrome.jpg Drum Semi-Flush, 400-Barn Red, Opaque Glass, Four Painted Band, Shown with G40 Half-Chrome Bulb 1000 1000 60135
61195 64903 product 0 73428 A 6 D 0 0 schoolhouse-acorn-flush-opaque-stripe-PB5-dark-green-jadite.jpg Acorn Flush Mount, 300-Dark Green, Opaque Glass, Three Painted Band, 311-Jadite 1000 1000 73428
61441 64876 product 0 73674 A 6 C 0 0 Round_Schoolhouse_Flush_Mount_Light_-_Barn_Light_Electric_-_Interior_Lighting.jpg Round Schoolhouse Flush Mount, 300-Dark Green, Opaque Glass, Double Painted Bands in 307-Emerald Green | Photo Courtesy of Avice Meehan 1317 1760 73674
65272 64903 product 0 77505 A 6 C 0 0 IMG_1568-residential-interior-lighting-kitchen-sink-Acorn-Schoolhouse-Flush-Mount-Opaque-500-Buttery-Yellow-PB4-Three-Painted-Band.jpg Acorn Flush Mount, Opaque Glass, 500-Buttery Yellow, PB4-Three Painted Band 3005 3658 77505
65273 64903 product 0 77506 A 6 C 0 0 IMG_1578-residential-interior-lighting-kitchen-sink-Acorn-Schoolhouse-Flush-Mount-Opaque-500-Buttery-Yellow-PB4-Three-Painted-Band.jpg Acorn Flush Mount, Opaque Glass, 500-Buttery Yellow, PB4-Three Painted Band 3024 4032 77506
65336 64903 product 0 77569 A 6 C 0 0 IMG_1669-residential-interior-lighting-kitchen-sink-Acorn-Schoolhouse-Flush-Mount-Opaque-500-Buttery-Yellow-PB4-Three-Painted-Band.jpg Acorn Flush Mount, Opaque Glass, 500-Buttery Yellow, Three Painted Band | Photo Courtesy of Homeowner 2768 2366 77569
61442 64876 product 0 73675 A 7 C 0 0 Round_Schoolhouse_Flush_Mount_Light_-_300_Dark_Green_Barn_Light_Electric_-_Entryway_Lighting.jpg Round Schoolhouse Flush Mount, 300-Dark Green, Opaque Glass, Double Painted Bands in 307-Emerald Green (Also pictured: Union Chain Hung Pendant Light) | Photo Courtesy of Avice Meehan 1500 2000 73675
64107 64908 product 0 76340 A 7 C 0 0 IMG_8638-residential-interior-lighting-kids-bedroom-Drum-Schoolhouse-Semi-Flush-Mount-Opaque-106-Matte-Black-PB9-Seven-Painted-Band-100-Black.jpg Drum Semi-Flush, 106-Matte Black, Opaque Glass, Seven Painted Band, 100-Black | Photo Courtesy of The Modern Proper 2388 2970 76340
64226 61954 product 0 76459 A 7 C 0 0 pagliaro_04-residential-interior-craft-room-lighting-primary-schoolhouse-flush-mount-Large-Opaque-400-Barn-Red.JPG Primary Schoolhouse Flush Mount, 400-Barn Red, Large Opaque Glass | Photo Courtesy of Homeowner 1939 2584 76459
58916 64908 product 0 71149 A 8 C 0 0 Drum_Schoolhouse_Semi-Flush_Mount_Pendant_Light_-_200_White_Barn_Light_Electric_-_Interior_Schoolhouse_Lighting.jpg Drum Semi-Flush, 200-White, Opaque Glass, Four Painted Band in 311-Jadite | Photo Courtesy of Todd Talbot 1500 1101 71149
60781 61954 product 0 73014 A 8 C 0 0 Primary_Schoolhouse_Flush_Mount_Light_-_Barn_Light_Electric_-_Kids_Bathroom_Colorful_Lighting.png Primary Schoolhouse Flush Mount Light, 570-Sunflower Fitter, Small Opaque Glass, Triple Painted Band in 390-Teal | Photo Courtesy of Lara Anderson (@3nutshells) and Dwelling Photography (@dwellingphotography) 843 537 73014
61443 64876 product 0 73676 A 8 C 0 0 Round_Schoolhouse_Flush_Mount_Light_-_300_Dark_Green_Barn_Light_Electric_-_Entryway_Lighting_44iv-cm.jpg Round Schoolhouse Flush Mount, 300-Dark Green, Opaque Glass, Double Painted Bands in 307-Emerald Green | Photo Courtesy of Avice Meehan 1500 1757 73676
61667 61954 product 0 73900 A 9 C 0 0 Primary_Schoolhouse_Flush_Mount_Light_-_805_Charcoal_Granite_Barn_Light_Electric_-_Bedroom_Lighting.jpg Primary Schoolhouse Flush Mount Light, 805-Charcoal Granite Fitter, Large Opaque Glass | Photo Courtesy of Brooke Green 1500 1000 73900
62183 64908 product 0 74416 A 9 C 0 0 Drum_Schoolhouse_Semi_Flush_Mount_Light_Opaque_810-Graphite.jpg Drum Semi-Flush, 810-Graphite, Opaque Glass | Photo Courtesy of Homeowner 1500 2000 74416
60780 61954 product 0 73013 A 10 C 0 0 Primary_Schoolhouse_Flush_Mount_Light_-_570_Sunflower_Barn_Light_Electric_-_Colorful_Bathroom_Lighting.jpg Primary Schoolhouse Flush Mount Light, 570-Sunflower Fitter, Small Opaque Glass, Triple Painted Band in 390-Teal | Photo Courtesy of Lara Anderson (@3nutshells) and Dwelling Photography (@dwellingphotography) 1500 1000 73013
63155 64908 product 0 75388 A 10 C 0 0 image1-residential-interior-lighting-Drum-Schoolhouse-Semi-Flush-Mount-opaque-715-Delphite-four-painted-bands-715-Delphite.jpeg Drum Semi-Flush, 715-Delphite, Opaque Glass, Four Painted Band 1500 1806 75388
31675 61954 product 0 43908 A 11 C 0 0 1.jpg Primary Schoolhouse Flush Mount Light, 100-Black, Small Opaque Glass, Triple Painted Band | Photo Courtesy of Life & Renovations 600 1004 43908
63156 64908 product 0 75389 A 11 C 0 0 image3-residential-interior-lighting-Drum-Schoolhouse-Semi-Flush-Mount-opaque-715-Delphite-four-painted-bands-715-Delphite.jpeg Drum Semi-Flush, 715-Delphite, Opaque Glass, Four Painted Band 1500 2000 75389
32629 61954 product 0 44862 A 12 C 0 0 letterman_schoolhouse_flush_small_buttery_yellow2.jpg Primary Schoolhouse Flush Mount Light, 500-Buttery Yellow, Small Opaque Glass, No Painted Band | Photo Courtesy of Customer 1024 1365 44862
32628 61954 product 0 44861 A 13 C 0 0 schoolhouse_flush_mount_small_blkfitter_triple_bands3.jpg Primary Schoolhouse Flush Mount Light, 100-Black, Small Opaque GlassTriple Painted Band | Photo Courtesy of Customer 1024 1365 44861
56109 61954 product 0 68342 A 14 C 0 0 primary_schoolhouse_flush_mount_large_clear_galvanizedfitter-residential-interior-kitchen.jpg Primary Schoolhouse Flush Mount Light, 975-Galvanized Fitter, Large Clear Glass | Photo Courtesy of Homeowner 3024 4032 68342
62188 61954 product 0 74421 A 15 C 0 0 Primary_Schoolhouse_Flush_Mount_Light_Small_Opaque_400-BarnRed.JPG Primary Schoolhouse Flush Mount Light, 400-Barn Red Fitter, Small Opaque Glass, Double Painted Band, 400-Barn Red | Photo Courtesy of Homeowner 1746 1843 74421