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

Query time 0.00121

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": 36,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (62862,64908,64875,64902)"
        }
      }
    },
    "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
31723 62862 product 0 43956 A 0 D 0 0 schoolhouse-primary-LED-semi-flush-pendant-large-clear-glass-996-weathered-copper.jpg Primary LED Schoolhouse Semi-Flush Mount Light, 996-Natural Weathered Copper, Large Clear Glass 1000 1000 43956
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
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
31724 62862 product 0 43957 A 1 D 0 0 schoolhouse-primary-LED-semi-flush-pendant-small-clear-glass-805-charcoal-granite-480-blush-pink-triple-painted-band.jpg Primary LED Schoolhouse Semi-Flush Mount Light, 805-Charcoal Granite, Small Clear Glass, Triple Painted Band, 480-Blush Pink 1000 1000 43957
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
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
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
23225 62862 product 0 35140 A 2 D 0 0 schoolhouse-primary-LED-semi-flush-pendant-large-opaque-glass-997-raw-brass-307-emerald-green-double-painted-band.jpg Primary LED Schoolhouse Semi-Flush Mount Light, 997-Natural Raw Brass, Large Opaque Glass, Double Painted Band, 307-Emerald Green 1000 1000 35140
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
23227 62862 product 0 35142 A 3 D 0 0 schoolhouse-primary-LED-semi-flush-pendant-large-clear-glass-400-barn-red-triple-painted-band.jpg Primary LED Schoolhouse Semi-Flush Mount Light, 400-Barn Red, Large Clear Glass, Triple Painted Band 1000 1000 35142
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
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
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
23224 62862 product 0 35139 A 4 D 0 0 schoolhouse-primary-LED-semi-flush-pendant-small-opaque-glass-999-oil-rubbed-copper.jpg Primary LED Schoolhouse Semi-Flush Mount Light, 999-Natural Oil-Rubbed Copper, Small Opaque Glass 1000 1000 35139
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
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
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
23226 62862 product 0 35141 A 5 D 0 0 schoolhouse-primary-LED-semi-flush-pendant-small-clear-glass-200-white-single-painted-band.jpg Primary LED Schoolhouse Semi-Flush Mount Light, 200-White, Single Painted Band 1000 1000 35141
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
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
31725 62862 product 0 43958 A 6 D 0 0 schoolhouse-primary-LED-semi-flush-pendant-large-opaque-glass-975-galvanized-100-black-single-painted-band.jpg Primary LED Schoolhouse Semi-Flush Mount Light, 975-Galvanized, Large Opaque Glass, Single Painted Band, 100-Black 1000 1000 43958
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
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
66836 62862 product 0 79069 A 6 C 0 0 studio-residential-interior-lighting-craft-room-Primary-LED-Schoolhouse-Semi-Flush-Mount-Large-Opaque-975-Galvanized-PB3-Triple-Painted-Bands-200-White.jpeg Primary LED Schoolhouse Semi Flush Mount, Large Opaque, 975- Galvanized, Triple Painted Bands, 200-White | Customer Submission 3308 2983 79069
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
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
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
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
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
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
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