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 (62658, 61345, 62171, 62169) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00153

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": 59,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (62658,61345,62171,62169)"
        }
      }
    },
    "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
15786 61345 product 0 27273 A 0 D 0 0 sydney-flush-16in-100-black-CLR.jpg 16" Sydney, 100-Black, CLR-Clear Glass 1000 1000 27273
20206 62171 product 0 32022 A 0 D 0 0 brisbane-cord-12in-200-white-100-black-clear-glass-SBK.jpg 12" Brisbane, 200-White, Guard in 100-Black, CLR-Clear Glass, Standard Black Cord 1000 1000 32022
22625 62658 product 0 34523 A 0 D 0 0 outback-flush-mount-20in-390-teal-200-white-RIB.jpg 20" Outback LED, 390-Teal, Guard in 200-White, RIB-Ribbed Glass 1000 1000 34523
66178 62169 product 0 78411 A 0 D 0 0 Wallaby-flush-16in-390-teal-480-blush-rib.jpg 16" Wallaby, 390-Teal, Guard in 480-Blush Pink, RIB-Ribbed Glass 1000 1000 78411
15784 61345 product 0 27271 A 1 D 0 0 sydney-flush-12in-975-galvanized-400-barn-red-RIB.jpg 12" Sydney, 975-Galvanized, Guard in 400-Barn Red, RIB-Ribbed Glass 1000 1000 27271
22624 62658 product 0 34522 A 1 D 0 0 outback-flush-mount-12in-975-galvanized-400-barn-red-TGG-FST_oxrs-d7.jpg 12" Outback LED, 975-Galvanized, Guard in 400-Barn Red, FST-Frosted Glass 1000 1000 34522
66176 62169 product 0 78409 A 1 D 0 0 Wallaby-flush-14in-975-galvanized-705-navy-CLR.jpg 14" Wallaby, 975-Galvanized, Guard in 705-Navy, CLR-Clear Glass 1000 1000 78409
66444 62171 product 0 78677 A 1 D 0 0 brisbane-cord-12in-997-raw-brass-100-black-SBK.jpg 12" Brisbane, 997-Natural Raw Brass, With Cap Option, Guard in 100-Black, CLR-Clear Glass, Standard Black Cord 1000 1000 78677
15785 61345 product 0 27272 A 2 D 0 0 sydney-flush-14in-500-buttery-yellow-705-navy-RIB.jpg 14" Sydney, 500-Buttery Yellow, Guard in 705-Navy, RIB-Ribbed Glass, Mounting in 705-Navy 1000 1000 27272
30641 62171 product 0 42873 A 2 D 0 0 brisbane-cord-12in-300-dark-green-RIB-emerald-green-cloth-cord.jpg 12" Brisbane, 300-Dark Green, RIB-Ribbed Glass, Emerald Green Cloth Cord 1000 1000 42873
64120 62658 product 0 76353 A 2 D 0 0 outback-flush-mount-18in-100-black0TGG-RIB.jpg 18" Outback LED, 100-Black, RIB-Ribbed Glass 1000 1000 76353
66179 62169 product 0 78412 A 2 D 0 0 Wallaby-flush-16in-997-raw-brass-100-black-CLR.jpg 16" Wallaby, 997-Natural Raw Brass, With Cap Option, Guard in 100-Black, CLR-Clear Glass 1000 1000 78412
20310 62169 product 0 32126 A 3 D 0 0 Wallaby-flush-12in-307-emerald-green-RIB.jpg 12" Wallaby, 307-Emerald Green, RIB-Ribbed Glass 1000 1000 32126
30629 62658 product 0 42861 A 3 D 0 0 outback-flush-mount-14in-200-white-TGG-RIB.jpg 14" Outback LED, 200-White, RIB-Ribbed Glass 1000 1000 42861
66306 61345 product 0 78539 A 3 D 0 0 sydney-flush-18in-715-delphite-200-white-RIB.jpg 18" Sydney, 715-Delphite, Guard in 200-White, RIB-Ribbed Glass 1000 1000 78539
66443 62171 product 0 78676 A 3 D 0 0 brisbane-cord-12in-400-barn-red-RIB-barn-red-swirl-cord.jpg 12" Brisbane, 400-Barn Red, RIB-Ribbed Glass, Barn Red & Black Swirl Cloth Cord 1000 1000 78676
30626 61345 product 0 42858 A 4 D 0 0 sydney-flush-14in-997-raw-brass-100-black-CLR.jpg 14" Sydney, 997-Natural Raw Brass, With Cap Option, Guard in 100-Black, CLR-Clear Glass, Mounting in 100-Black 1000 1000 42858
66175 62169 product 0 78408 A 4 D 0 0 Wallaby-flush-14in-100-black-CLR.jpg 14" Wallaby, 100-Black, With Cap Option, CLR-Clear Glass 1000 1000 78408
66446 62171 product 0 78679 A 4 D 0 0 brisbane-cord-14in-490-magenta-100-black-clear-glass-SBK.jpg 14" Brisbane, 100-Black, Guard in 490-Magenta, CLR-Clear Glass, Standard Black Cord 1000 1000 78679
66803 62658 product 0 79036 A 4 D 0 0 outback-flush-mount-20in-307-emerald-TGG-FST_xou2-7h.jpg 20" Outback LED, 307-Emerald Green, With Cap Option, FST-Frosted Glass 1000 1000 79036
66177 62169 product 0 78410 A 5 D 0 0 Wallaby-flush-16in-200-white-RIB.jpg 16" Wallaby, 200-White, RIB-Ribbed Glass 1000 1000 78410
66305 61345 product 0 78538 A 5 D 0 0 sydney-flush-18in-400-barn-red-CLR.jpg 18" Sydney, 400-Barn Red, CLR-Clear Glass 1000 1000 78538
66445 62171 product 0 78678 A 5 D 0 0 brisbane-cord-14in-100-black-clear-glass-SBK_myu7-sh.jpg 14" Brisbane, 100-Black, CLR-Clear Glass, Standard Black Cord 1000 1000 78678
66802 62658 product 0 79035 A 5 D 0 0 outback-flush-mount-16in-705-navy-490-magenta-TGG-RIB_ykm5-nw.jpg 16" Outback LED, 705-Navy, Guard in 490-Magenta, RIB-Ribbed Glass 1000 1000 79035
30633 62169 product 0 42865 A 6 D 0 0 Wallaby-flush-12in-700-royal-blue-RIB.jpg 12" Wallaby, 700-Royal Blue, RIB-Ribbed Glass 1000 1000 42865
66304 61345 product 0 78537 A 6 D 0 0 sydney-flush-16in-200-white-480-blush-pink-RIB.jpg 16" Sydney, 200-White, Guard in 480-Blush Pink, RIB-Ribbed Glass 1000 1000 78537
31658 62169 product 0 43891 A 7 C 0 0 Wallaby_Flush_Mount_Pendant.jpeg (4) 14" Wallaby Flush Mount Pendants, 100-Black, With Cap, CCR-Clear Crackle Glass | Photo Courtesy of Tim Lenz Photography and Sequoia Contracting 1080 1350 43891
53583 61345 product 0 65816 A 7 C 0 0 sydney_flush_mount_12in_raw_copper_blackguard_clearglass3.jpg 12” Sydney, 995-Natural Raw Copper, With Cap, 100-Black CGG-Cast Guard, CLR-Clear Glass | Photo Courtesy of Houses and Barns by John Libby and Izzy Bouchard Photography 1500 2142 65816
66448 62171 product 0 78681 A 7 D 0 0 brisbane-cord-16in-200-white-RIB-SBK.jpg 16" Brisbane, 200-White, RIB-Ribbed Glass, Standard White Cord 1000 1000 78681
46288 62169 product 0 58521 A 8 C 0 0 Wallaby_Flush_Mount_Pendant_-_Barn_Light_Electric.jpg (7) 14" Wallaby Flush Mount Pendants, 100-Black, With Cap, CCR-Clear Crackle Glass | Photo Courtesy of Tim Lenz Photography and Sequoia Contracting 990 660 58521
53582 61345 product 0 65815 A 8 C 0 0 sydney_flush_mount_12in_995_raw_copper_blackguard_clearglass2.jpg 12” Sydney, 995-Natural Raw Copper, With Cap, 100-Black CGG-Cast Guard, CLR-Clear Glass | Photo Courtesy of Houses and Barns by John Libby and Izzy Bouchard Photography 1500 1072 65815
66450 62171 product 0 78683 A 8 D 0 0 brisbane-cord-16in-975-galvanized-480-blush-pink-RIB-blush-pink-cloth-cord.jpg 16" Brisbane, 975-Galvanized, Guard in 480-Blush Pink, RIB-Ribbed Glass, Blush Pink Cloth Cord 1000 1000 78683
47276 61345 product 0 59509 A 9 C 0 0 Barn_Light_Electric_Semi_Flush_Mount_Light_-_975_Galvanized_Metal_and_Red.jpg 16” Sydney, 975-Galvanized, Guard in 400-Barn Red, Clear Glass, No Cap | Photo Courtesy of Melissa from the Inspired Room - www.theinspiredroom.net 1500 2250 59509
47283 62169 product 0 59516 A 9 C 0 0 wallaby_flush_mount_light_307_emerald_green_-_the_inspired_room_o7bz-k2.jpg 12" Wallaby, 307-Emerald Green, No Cap | Photo Courtesy of Melissa from The Inspired Room - www.theinspiredroom.net 1500 2250 59516
53573 62171 product 0 65806 A 9 C 0 0 brisbane_cord_hung_pendant_14in_barn_red_crz.jpg 14” Brisbane, With Cap, 400-Barn Red, SBW-Standard Black Cord | Photo Courtesy of Houses and Barns by John Libby and Izzy Bouchard Photography 1500 2064 65806
46194 61345 product 0 58427 A 10 C 0 0 industrial_flush_mount_pendant_light-768x576.jpg 14” Sydney, 200-White, With Cap | Customer Submission 768 576 58427
61338 62171 product 0 73571 A 10 C 0 0 Brisbane_Cord_Pendant_Light_Royal_Blue_Barn_Light_Electric_-_Industrial_Pendant_Bathroom_Lighting.jpg 14” Brisbane Pendants, 700-Royal Blue, RIB-Ribbed Glass, SWH-Standard White Cord, 200-White Cap | Photo Courtesy of Bren Niel 1500 2000 73571
62792 62169 product 0 75025 A 10 C 0 0 residential-interior-laundry-light-Wallaby_Flush_Mount_Pendant_14in_105-Textured-Black_998-Weathered-Brass-on.jpg 14" Wallaby Flush Mount Pendant, 105-Textured Black, CLR-Clear Glass 1254 1672 75025
61337 62171 product 0 73570 A 11 C 0 0 Brisbane_Pendant_Light_-_Barn_Light_Electric_-_700_Royal_Blue_Bathroom_Powder_Room_Lighting.jpg 14” Brisbane Pendants, 700-Royal Blue, RIB-Ribbed Glass, SWH-Standard White Cord, 200-White Cap | Photo Courtesy of Bren Niel 1500 2002 73570
65955 61345 product 0 78188 A 11 C 0 0 residential-interior-lighting-on-Sydney-Flush-Mount-Pendant-975-Galvanized-CGG-400-Barn-Red.jpg 16" Sydney Flush Mount, 975-Galvanized, Standard Cast Guard, 400-Barn Red | Customer Submission 1500 1001 78188
65966 62169 product 0 78199 A 11 C 0 0 image0-residential-interior-lighting-foyer-hallway-Wallaby-Flush-Mount-16in-420-Orange-Cap-311-Jadite-Guard-Clear-Glass.jpeg 16" Wallaby Flush Mount, 420-Orange, Cap, 311-Jadite, Clear Glass | Customer Submission 3006 3767 78199
35881 62169 product 0 48114 A 12 C 0 0 wallaby_flush_mount_lighting-1024x658-768x494__1_.jpg 12" Wallaby Flush Mount Pendant, 200-White with 975-Galvanized Guard, With Cap, CLR-Clear Glass | Customer Submission 768 494 48114
42522 62171 product 0 54755 A 12 C 0 0 brisbane_pendant_705_navy.jpg (2) 14” Brisbane Pendants, 705-Navy, CLR-Clear Glass, SWH-Standard White Cord, White Cap, Ribbed Glass | Photo Courtesy of Homeowner 1500 2256 54755
65956 61345 product 0 78189 A 12 C 0 0 residential-interior-lighting-on-mudroom-Sydney-Flush-Mount-Pendant-975-Galvanized-CGG-400-Barn-Red.jpg 16" Sydney Flush Mount, 975-Galvanized, Standard Cast Guard, 400-Barn Red | Customer Submission 1500 2553 78189
28318 62169 product 0 40511 A 13 C 0 0 flush_mount_ceiling_lighting-1024x789-768x592.jpg 12" Wallaby Flush Mount Pendant, 200-White with 975-Galvanized Guard, With Cap, CLR-Clear Glass | Customer Submission 768 592 40511
61414 62171 product 0 73647 A 13 C 0 0 Brisbane_Pendant_Light_-_Barn_Light_Electric_-_Grey_Red_Kitchen_Lighting.jpg 12” Brisbane Pendants, 810-Graphite, Guard 411-Cherry Red, CSB-Black Cloth Cord, Ribbed Glass | Photo Courtesy of Homeowner 1500 1841 73647
46447 62169 product 0 58680 A 14 C 0 0 Wallaby_Flush_Mount_Pendant_-_Barn_Light_Electric_d9wj-8p.jpg 12" Wallaby Flush Mount Pendant, 200-White with 975-Galvanized Guard, With Cap, CLR-Clear Glass | Customer Submission 1024 998 58680
48382 62171 product 0 60615 A 14 C 0 0 industrial_ceiling_light-576x768.jpg 12” Brisbane, No Cap, 600-Bronze, FST-Frosted Glass, SBW-Standard Black Cord | Photo Courtesy of Homeowner 576 768 60615
49073 62171 product 0 61306 A 15 C 0 0 brisbane_pendant_front_with_red_light.jpg 14” Brisbane, No Cap, 975-Galvanized, FST-Frosted Glass, SBW-Standard Black Cord, 400-Barn Red Guard Finish | Photo Courtesy of Olson Development LLC 1500 2250 61306
66036 62169 product 0 78269 A 15 C 0 0 IMG_1361-residential-exterior-lighting-porch-patio-Wallaby-Flush-Mount-12in-605-Rust-No-Cap-Clear-Glass.jpg 12" Wallaby Flush Mount, 605-Rust, No Cap, Clear Glass | Customer Submission 3004 3290 78269
49074 62171 product 0 61307 A 16 C 0 0 brisbane_pendant_buttery_yellow.jpg 14” Brisbane, Cap, 500-Buttery Yellow, CMG-Grey Cotton, 975-Galvanized Guard Finish, AMB-Amber Glass | Photo Courtesy of Olson Development LLC 1500 2250 61307
68548 62169 product 0 80781 A 16 C 0 0 IMG-1864-commercial-interior-lighting-hotel-Wallaby-Flush-Mount-12in-400-Barn-Red-No-Cap-Frosted-Glass.jpg 12" Wallaby Flush Mount, 400-Barn Red, FST-Frosted Glass | Photo Courtesy of The Hostel Hotel 1500 1329 80781
48381 62171 product 0 60614 A 17 C 0 0 industrial_ceiling_pendants-576x768.jpg (2) 12” Brisbane, No Cap, 600-Bronze, FST-Frosted Glass, SBW-Standard Black Cord | Photo Courtesy of Homeowner 576 768 60614
66168 62169 product 0 78401 A 17 C 0 0 wallaby_flush_mount_307-emerald-green_-_the_inspired_room.jpg 12" Wallaby, 307-Emerald Green, No Cap, Flush Mount | Photo Courtesy of Melissa from The Inspired Room - www.theinspiredroom.net 1500 2250 78401
61466 62171 product 0 73699 A 18 C 0 0 Brisbane_Pendant_Lights_-_Barn_Light_Electric_-_Hotel_Lighting.jpg 12” Brisbane Pendants, 200-White, RIB-Ribbed Glass, S & White Cloth Cord, White Cap, Ribbed Glass | Photo Courtesy of Farmer’s Daughter Hotel 1280 853 73699
67108 62169 product 0 79341 A 18 C 0 0 image4-residential-interior-lighting-Wallaby-Flush-Mount-12in-570-Sunflower-No-Cap-975-Galvanized-Clear-Glass.jpeg 12" Wallaby Flush Mount, 570-Sunflower, No Cap, 975-Galvanized, Clear Glass | Customer Submission 2786 2273 79341
61462 62171 product 0 73695 A 19 C 0 0 Brisbane_Pendant_Light_-_Barn_Light_Electric_-_Hotel_Room_Lighting.jpg 12” Brisbane Pendants, 200-White, RIB-Ribbed Glass, S & White Cloth Cord, White Cap, Ribbed Glass | Photo Courtesy of Farmer’s Daughter Hotel 960 640 73695
42523 62171 product 0 54756 A 20 C 0 0 cord_hung_pendant_lighting__1024x576_.jpg (5) 14” Brisbane Pendants, 100-Black, CLR-Clear Glass, SBK-Standard Black Cord | Photo Courtesy of Grace Ridge Brewing 1024 576 54756
46274 62171 product 0 58507 A 21 C 0 0 1408-brisbane-12-inch-200-white-frosted-glass-in-setting.jpg 12” Brisbane, 200-White, FST-Frosted Glass, 975-Galvanized Guard, CSUW-Blue & White Cloth 1468 1140 58507