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 (62167, 62169, 62165, 62163, 62624) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00117

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": 56,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (62167,62169,62165,62163,62624)"
        }
      }
    },
    "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
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
22433 62624 product 0 34331 A 0 D 0 0 Wallaby-chain-12in-700-royal-blue-CLR-CSUW-alt.jpg 12" Wallaby, 700-Royal Blue, CLR-Clear Glass, CSUW-Blue & White Cloth Cord 1000 1000 34331
66154 62167 product 0 78387 A 0 D 0 0 wallaby-gooseneck-16in-997-raw-brass-FST-G24-alt.jpg 16" Wallaby, 997-Natural Raw Brass, With Cap Option, Guard in 100-Black, FST-Frosted Glass, G24 Gooseneck Arm, Decorative Backing Plate Cover 1000 1000 78387
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
66186 62624 product 0 78419 A 0 D 0 0 Wallaby-chain-14in-400-Barn-Red-RIB-CRZ-alt.jpg 14" Wallaby, 400-Barn Red, RIB-Ribbed Glass, CRZ-Red Chevron Cord 1000 1000 78419
66187 62624 product 0 78420 A 0 D 0 0 Wallaby-chain-14in-715-delphite-705-navy-CMG-CLR-alt.jpg 14" Wallaby, 715-Delphite, Guard in 705-Navy, CLR-Clear Glass, CMG-Grey Cloth Cord, Mounting in 705-Navy 1000 1000 78420
66188 62624 product 0 78421 A 0 D 0 0 Wallaby-Chain-16in-311-jadite-RIB-CSW-alt.jpg 16" Wallaby, 311-Jadite, RIB-Ribbed Glass, CSW-White Cloth Cord 1000 1000 78421
66191 62624 product 0 78424 A 0 D 0 0 Wallaby-Chain-full-build-16in-995-copper-100-black-CLR-CSBB-alt.jpg 16" Wallaby, 995-Natural Raw Copper, Guard in 100-Black, CLR-Clear Glass, CSBB-Black & Brown Cloth Cord, Mounting in 100-Black 1000 1000 78424
66192 62624 product 0 78425 A 0 D 0 0 Wallaby-Chain-16in-997-raw-brass-200-white-CSGW-alt.jpg 16" Wallaby, 997-Natural Raw Brass, Guard in 200-White, CSGW-Gold & White Cloth Cord, Mounting in 200-White 1000 1000 78425
66199 62163 product 0 78432 A 0 D 0 0 Wallaby-cord-16in-997-raw-brass--200-white-CSW-RIB.jpg 16" Wallaby, 997-Natural Raw Brass, With Cap Option, Guard in 200-White, RIB-Ribbed Glass, CSW-White Cloth Cord 1000 1000 78432
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
20278 62167 product 0 32094 A 1 D 0 0 wallaby-gooseneck-16in-715-delphite-705-navy-RIB-G19-alt.jpg 16" Wallaby, 715-Delphite, Guard in 705-Navy, RIB-Ribbed Glass, G19 Gooseneck Arm 1000 1000 32094
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
66198 62163 product 0 78431 A 1 D 0 0 Wallaby-cord-full-build-12in-805-charcoal-granite-400-barn-red-CRD-CLR.jpg 12" Wallaby, 805-Charcoal Granite, With Cap Option, Guard in 400-Barn Red, CSR-Red Cloth Cord, CLR-Clear Glass 1000 1000 78431
30631 62163 product 0 42863 A 2 D 0 0 Wallaby-cord-14in-200-white-100-black-CSBW-RIB.jpg 14" Wallaby, 200-White, With Cap Option, Guard in 100-Black, RIB-Ribbed Glass, CSBW-Black & White Cloth Cord 1000 1000 42863
66152 62167 product 0 78385 A 2 D 0 0 wallaby-gooseneck-12in-400-barn-red-100-black-RIB-G8-alt.jpg 12" Wallaby, 400-Barn Red, Guard in 100-Black, RIB-Ribbed Glass, G8 Gooseneck Arm, 100-Black 1000 1000 78385
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
20267 62163 product 0 32083 A 3 D 0 0 Wallaby-cord-12in-700-royal-blue-CLR-CSUW.jpg 12" Wallaby, 700-Royal Blue, CLR-Clear Glass, CSUW-Blue & White Cloth Cord 1000 1000 32083
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
66153 62167 product 0 78386 A 3 D 0 0 wallaby-gooseneck-12in-200-white-100-black-FST-G35-alt.jpg 12" Wallaby, 200-White, Guard in 100-Black, FST-Frosted Glass, G35 Gooseneck Arm 1000 1000 78386
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
20279 62167 product 0 32095 A 4 D 0 0 wallaby-gooseneck-14in-700-royal-blue-FST-G15-alt.jpg 14" Wallaby, 700-Royal Blue, FST-Frosted Glass, G15 Gooseneck Arm 1000 1000 32095
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
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
66197 62163 product 0 78430 A 4 D 0 0 Wallaby-cord-16in-500-buttery-yellow-700-royal-blue-CSUW-CLR.jpg 16" Wallaby, 500-Buttery Yellow, Guard in 700-Royal Blue, CLR-Clear Glass, CSUW-Blue & White Cloth Cord 1000 1000 78430
66155 62167 product 0 78388 A 5 D 0 0 wallaby-gooseneck-14in-975-galvanized-600-bronze-RIB-G13-alt.jpg 14" Wallaby, 975-Galvanized, Guard in 600-Bronze, RIB-Ribbed Glass, G13 Gooseneck Arm 1000 1000 78388
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
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
66195 62163 product 0 78428 A 5 D 0 0 Wallaby-cord-14in-400-barn-red-CLR-CRZ.jpg 14" Wallaby, 400-Barn Red, CLR-Clear Glass, CRZ-Red Chevron Cord 1000 1000 78428
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
66156 62167 product 0 78389 A 6 D 0 0 wallaby-gooseneck-12in-300-dark-green-RIB-G22-alt.jpg 12" Wallaby, 300-Dark Green, Ribbed Glass, G22 Gooseneck Arm 1000 1000 78389
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
66196 62163 product 0 78429 A 6 D 0 0 Wallaby-cord-16in-311-delphite-RIB-CSW.jpg 16" Wallaby, 311-Jadite, RIB-Ribbed Glass, CSW-White Cloth Cord 1000 1000 78429
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
46195 62167 product 0 58428 A 7 C 0 0 gooseneck_wall_lighting_american_made_lighting-802x1024.jpg 12” Wallaby, 200-White, With Cap, Clear Glass, 975-Galvanized Guard, G3 Gooseneck Arm | Photo Courtesy of Farmer’s Daughter Hotel 802 1024 58428
58964 62163 product 0 71197 A 7 C 0 0 Wallaby_Pendant_Light_-_Sunflower_Barn_Light_Electric_-_Hallway_Lighting.jpg 12” Wallaby, 570-Sunflower with 975-Galvanized Guard, No Cap, RIB-Ribbed Glass, CMG-Grey Cotton Cord | Photo Courtesy of Homeowner 1500 2528 71197
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
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
46198 62167 product 0 58431 A 8 C 0 0 wall_lights_american_made_gooseneck_lighting-665x1024-499x768.jpg 12” Wallaby, 200-White, With Cap, CLR-Clear Glass, 975-Galvanized Guard, G3 Gooseneck Arm | Photo Courtesy of Farmer’s Daughter Hotel 499 768 58431
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
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
58962 62167 product 0 71195 A 9 C 0 0 Wallaby_Gooseneck_Light_-_975_Galvanized_Barn_Light_Electric_-_Bathroom_Lighting.jpg 12” Wallaby, 975-Galvanized, No Cap, RIB-Ribbed Glass, 975-Galvanized Guard, G16 Gooseneck Arm | Photo Courtesy of Homeowner 1500 1000 71195
46199 62167 product 0 58432 A 10 C 0 0 industrial_wall_lighting-515x768.jpg 12” Wallaby, 200-White, With Cap, CLR-Clear Glass, 975-Galvanized GuardG3 Gooseneck Arm | Photo Courtesy of Farmer’s Daughter Hotel 515 768 58432
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
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
68547 62167 product 0 80780 A 11 C 0 0 IMG-1863-commercial-interior-lighting-hotel-Wallaby-Gooseneck-12in-400-Barn-Red-G3arm-400-Barn-Red-No-Cap-Frosted-Glass.jpg 12" Wallaby Gooseneck, 400-Barn Red, Guard in 975-Galvanized, FST-Frosted Glass, G3 Straight Arm | Photo Courtesy of The Hostel Hotel 1500 1125 80780
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
58963 62167 product 0 71196 A 12 C 0 0 Wallaby_Gooseneck_Light_-_705_Navy_Barn_Light_Electric_-_Bathroom_Vanity_Lighting.jpg 12” Wallaby, 705-Navy, No Cap, RIB-Ribbed Glass, 975-Galvanized Guard, G16 Gooseneck Arm in 975-Galvanized | Photo Courtesy of Homeowner 1500 2121 71196
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
60016 62167 product 0 72249 A 13 C 0 0 Wallaby_Gooseneck_Light_-_Barn_Light_Electric_-_Exterior_Lighting.JPG 12” Wallaby, 975-Galvanized, With Cap, RIB-Ribbed Glass, 705-Navy Guard, G3 Gooseneck Arm in 975-Galvanized | Photo Courtesy of Homeowner 1211 1685 72249
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
67996 62167 product 0 80229 A 14 C 0 0 IMG_019-residential-exterior-lighting-Wallaby-Gooseneck-16in-200-White-G15arm-975-Galvanized-No-Cap-Clear-Glass.jpg 16" Wallaby Gooseneck, 200-White, G15Arm, Galvanized, No Cap, Clear Glass | Photo Courtesy of Ron DiMarco Architects 3360 4083 80229
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
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
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
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