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 (62165, 62584, 61342, 62173) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00097

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": 44,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (62165,62584,61342,62173)"
        }
      }
    },
    "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
15764 61342 product 0 27248 A 0 D 0 0 sydney-stem-12in-400-barn-red-ribRIB.jpg 12" Sydney, 400-Barn Red, RIB-Ribbed Glass 1000 1000 27248
20272 62165 product 0 32088 A 0 D 0 0 Wallaby-stem-16in-997-raw-brass-200-white-RIB.jpg 16" Wallaby, 997-Natural Raw Brass, With Cap Option, Guard in 200-White, Mounting in 997-Natural Raw Brass, Decorative Canopy Cover 1000 1000 32088
30644 62173 product 0 42876 A 0 D 0 0 brisbane-stem-14in-380-chartreuse-100-black-heavy-duty-canopy-RIB.jpg 14" Brisbane, 380-Chartreuse, Guard in 100-Black, RIB-Ribbed Glass, Mounting in 100-Black, Heavy Duty Canopy 1000 1000 42876
66760 62584 product 0 78993 A 0 D 0 0 outback-stem-12in-975-galvanized-400-barn-red-TGG-FST.jpg 12" Outback LED, 975-Galvanized, Guard in 400-Barn Red, FST-Frosted Glass 1000 1000 78993
20224 62173 product 0 32040 A 1 D 0 0 brisbane-stem-12in-100-black-CLR.jpg 12" Brisbane, 100-Black, CLR-Clear Glass 1000 1000 32040
20273 62165 product 0 32089 A 1 D 0 0 Wallaby-stem-14in-barn-red-RIB.jpg 14" Wallaby, 400-Barn Red, RIB-Ribbed Glass 1000 1000 32089
66298 61342 product 0 78531 A 1 D 0 0 sydney-stem-18in-975-galvanized-400-barn-red-CLR-HSC.jpg 18" Sydney, 975-Galvanized, Guard in 400-Barn Red, CLR-Clear Glass, Hang Straight Canopy 1000 1000 78531
66759 62584 product 0 78992 A 1 D 0 0 outback-stem-20in-700-royal-blue-975-galvanized-TGG-RIB-HSC_2dge-4v.jpg 20" Outback LED, 700-Royal Blue, Guard in 975-Galvanized, RIB-Ribbed Glass, Hang Straight Canopy, Mounting in 975-Galvanized 1000 1000 78992
15765 61342 product 0 27249 A 2 D 0 0 sydney-stem-14in-705-navy-490-magenta-CLR.jpg 14" Sydney, 705-Navy, Guard in 490-Magenta, CLR-Clear Glass 1000 1000 27249
22183 62584 product 0 34075 A 2 D 0 0 outback-stem-12in-997-raw-brass-200-white-TGG-RIB-decorative_3kro-r8.jpg 12" Outback LED, 997-Natural Raw Brass, With Cap Option, Guard in 200-White, RIB-Ribbed Glass, Decorative Canopy Cover 1000 1000 34075
66410 62173 product 0 78643 A 2 D 0 0 brisbane-stem-14in-400-barn-red-CLR.jpg 14" Brisbane, 400-Barn Red, CLR-Clear Glass 1000 1000 78643
22179 62584 product 0 34071 A 3 D 0 0 outback-stem-16in-490-magenta-100-black-TGG-RIB_s2mf-mo.jpg 16" Outback LED, 490-Magenta, Guard in 100-Black, RIB-Ribbed Glass 1000 1000 34071
30625 61342 product 0 42857 A 3 D 0 0 sydney-stem-14in-995-Raw-Copper-100-Black-CLR-Decorative-canopy.jpg 14" Sydney, 995-Natural Raw Copper, With Cap Option, Guard in 100-Black, CLR-Clear Glass, Decorative Canopy Cover 1000 1000 42857
66163 62165 product 0 78396 A 3 D 0 0 Wallaby-stem-16in-100-black-500-buttery-yellow-TGG-RIB.jpg 16" Wallaby, 100-Black, Guard in 500-Buttery Yellow, RIB-Ribbed Glass, Heavy Duty Stem Mount Canopy, Mounting in 100-Black 1000 1000 78396
66411 62173 product 0 78644 A 3 D 0 0 brisbane-stem-16in-390-teal-480-blush-pink-975-galvanized-HSC-RIB.jpg 16" Brisbane, 390-Teal, Guard in 480-Blush Pink, RIB-Ribbed Glass, Mounting in 975-Galvanized, Hang Straight Canopy 1000 1000 78644
15763 61342 product 0 27247 A 4 D 0 0 sydney-stem-12in-307-emerald-green-RIB.jpg 12" Sydney, 307-Emerald Green, With Cap Option, RIB-Ribbed Glass 1000 1000 27247
29858 62584 product 0 42081 A 4 D 0 0 outback-stem-18in-100-black-TGG-RIB-Heavy-Duty.jpg 18" Outback LED, 100-Black, RIB-Ribbed Glass, Heavy Duty Canopy 1000 1000 42081
66164 62165 product 0 78397 A 4 D 0 0 Wallaby-stem-12in-390-teal-CLR.jpg 12" Wallaby, 390-Teal, CLR-Clear Glass 1000 1000 78397
66412 62173 product 0 78645 A 4 D 0 0 brisbane-stem-16in-500-buttery-yellow-975-galvanized-RIB.jpg 16" Brisbane, 975-Galvanized, Guard in 500-Buttery Yellow, RIB-Ribbed Glass 1000 1000 78645
66165 62165 product 0 78398 A 5 D 0 0 Wallaby-stem-16in-480-blush-pink-490-magenta-CLR.jpg 16" Wallaby, 480-Blush Pink, Guard in 490-Magenta, CLR-Clear Glass, Mounting in 480-Blush Pink 1000 1000 78398
66296 61342 product 0 78529 A 5 D 0 0 sydney-stem-16in-200-white-RIB.jpg 16" Sydney, 200-White, RIB-Ribbed Glass 1000 1000 78529
66413 62173 product 0 78646 A 5 D 0 0 brisbane-stem-16in-700-royal-200-white-RIB.jpg 16" Brisbane, 700-Royal Blue, Guard in 200-White, RIB-Ribbed Glass, Mounting in 200-White 1000 1000 78646
66761 62584 product 0 78994 A 5 D 0 0 outback-stem-14in-200-white-TGG-RIB.jpg 14" Outback LED, 200-White, RIB-Ribbed Glass 1000 1000 78994
20225 62173 product 0 32041 A 6 D 0 0 brisbane-stem-12in-307-emerald-green-CLR.jpg 12" Brisbane, 307-Emerald Green, CLR-Clear Glass 1000 1000 32041
29813 61342 product 0 42036 A 6 D 0 0 sydney-stem-14in-500-buttery-yellow-100-black-RIB-Heavy-Duty-Canopy.jpg 14" Sydney, 500-Buttery Yellow, Guard in 100-Black, RIB-Ribbed Glass, Mounting in 100-Black, Heavy Duty Canopy 1000 1000 42036
66166 62165 product 0 78399 A 6 D 0 0 Wallaby-stem-14in-975-galvanized-400-barn-red-RIB-HSC.jpg 14" Wallaby, 975-Galvanized, Guard in 400-Barn Red, RIB-Ribbed Glass, HSC-Hang Straight Canopy, Mounting in 975-Galvanized 1000 1000 78399
66502 62584 product 0 78735 A 6 C 0 0 image_67151617-residential-interior-lighting-shed-Outback-LED-Stem-Mount-Pendant-16in-300-Dark-Green-18in-Stem-Guard-200-White-Clear-Glass.JPG 16" Outback LED, 300-Dark Green, 18" Stem, Guard, 200-White, Clear Glass | Customer Submission 3024 4032 78735
53578 62173 product 0 65811 A 7 C 0 0 brisbane_stem_mount_14in_barn_red_clearglass2.jpg 14” Brisbane Stem Mount Pendant, 400-Barn Red, With Cap, Hang Straight Canopy, 400-Barn Red Guard, Clear Glass | Photo Courtesy of Houses and Barns by John Libby and Izzy Bouchard Photography 1500 1071 65811
64511 62584 product 0 76744 A 7 C 0 0 exterior-residential-outback-stem-20in-390-teal-CGG-FST-100-Black.jpg 20" Outback LED, 390-Teal, CGG-Standard Guard, 100-Black, FST-Frosted Glass | Photo Courtesy of Homeowner 1500 2250 76744
66167 62165 product 0 78400 A 7 D 0 0 Wallaby-stem-12in-307-emerald-green-RIB.jpg 12" Wallaby, 307-Emerald Green, RIB-Ribbed Glass 1000 1000 78400
66297 61342 product 0 78530 A 7 D 0 0 sydney-stem-18in-715-delphite-blue-200-white-RIB.jpg 18" Sydney, 715-Delphite Blue, Guard in 200-White, RIB-Ribbed Glass 1000 1000 78530
20621 62165 product 0 32448 A 8 C 0 0 wallaby-400-barn-red-tybee-island.jpg 12" Wallaby, 400-Barn Red with 975-Galvanized Guard, With Cap, CLR-Clear Glass 600 900 32448
48922 61342 product 0 61155 A 8 C 0 0 image.jpeg 18” Sydney Stem Mount Pendant, 105-Textured Black, 24” Stem 1/2” Diameter, No Cap, CLR-Clear Glass | Photo Courtesy of Kim Mohr from Dream House Studios 1080 550 61155
53579 62173 product 0 65812 A 8 C 0 0 brisbane_stem_mount_14in_barn_red_clearglass3.jpg 14” Brisbane Stem Mount Pendant, 400-Barn Red, With Cap, Hang Straight Canopy, 400-Barn Red Guard, Clear Glass | Photo Courtesy of Houses and Barns by John Libby and Izzy Bouchard Photography 1500 1000 65812
64508 62584 product 0 76741 A 8 C 0 0 Exterior-Residential-Outback-LED-Stem-20in-390-Teal-CGG-100-black-FST-2V3A3523.jpg 20" Outback LED, 390-Teal, CGG-Standard Guard, 100-Black, FST-Frosted Glass | Photo Courtesy of Homeowner 3840 5760 76741
47277 61342 product 0 59510 A 9 C 0 0 Barn_Light_Electric_Semi_Flush_Mount_Light_-_Galvanized_Metal_and_Red_luru-s4.jpg 16” Sydney, Flush Mount, 975-Galvanized, Guard in 400-Barn Red, Clear Glass, No Cap | Photo Courtesy of Melissa from the Inspired Room - www.theinspiredroom.net 1500 2250 59510
59578 62173 product 0 71811 A 9 C 0 0 Brisbane_Stem_Mount_Pendant_-_400_Barn_Red_Barn_Light_Electric_-_Colorful_Front_Porch_Farmhouse_Stem_Pendant_Lighting.jpg 12” Brisbane Stem Mount Pendants, 470-Watermelon, 12” Stem, No Cap, CLR-Clear Glass | Customer Submission 1500 1999 71811
64509 62584 product 0 76742 A 9 C 0 0 Exterior-Residential-Outback-LED-Stem-20in-390-Teal-CGG-100-black-FST.jpg 20" Outback LED, 390-Teal, CGG-Standard Guard, 100-Black, FST-Frosted Glass | Photo Courtesy of Homeowner 1500 2250 76742
32311 62173 product 0 44544 A 10 C 0 0 industrial_lighting_kitchen_lighting_100_black.jpg 16" Brisbane Stem Mount Pendant, 600-Bronze, No Cap, Hang Straight Canopy, 600-Bronze Guard, FST-Frosted Glass | Photo Courtesy of Christina’s Adventures Blog 1500 2691 44544
62271 61342 product 0 74504 A 10 C 0 0 Sydney_Stem_Mount_Pendant_18in_975_Galvanized_6instem_ClearGlass2.jpg 18" Sydney Stem Mount, 975-Galvanized, CLR-Clear Glass | Photo Courtesy of J&J Photography 1500 2250 74504
32312 62173 product 0 44545 A 11 C 0 0 ceiling_pendant_lighting[1].jpg 16" Brisbane Stem Mount Pendant, 600-Bronze, No Cap, Hang Straight Canopy, 600-Bronze Guard, FST-Frosted Glass | Photo Courtesy of Christina’s Adventures Blog 517 768 44545
62881 61342 product 0 75114 A 11 C 0 0 DSCF2324Commercial-Exterior-Restaurant-Bar-Open-Air-Patio-Al-Fresco-Sydney-Stem-Mount-Hang-Straight-16in-710-Cobalt.jpg 16" Sydney, 710-Cobalt Blue (Paint to Match Porcelain), CLR-Clear Glass 1500 2250 75114
31257 62173 product 0 43490 A 12 C 0 0 ceiling_lights_barn_lights.jpg (3) 16" Brisbane Stem Mount Pendants, 975-Galvanized with 400-Barn Red Guards, 6" Stem, No Cap, CLR-Clear Glass | Customer Submission 768 1024 43490
59579 62173 product 0 71812 A 13 C 0 0 Brisbane_Stem_Mount_Pendant_-_Watermelon_Barn_Light_Electric_-_Outdoor_Porch_Lighting.jpg 12” Brisbane Stem Mount Pendants, 470-Watermelon, 12” Stem, No Cap, CLR-Clear Glass | Customer Submission 1500 2000 71812