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 (62414, 62167, 62583, 62406) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00094

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": 46,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (62414,62167,62583,62406)"
        }
      }
    },
    "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
29730 62406 product 0 41953 A 0 D 0 0 sydney-gooseneck-16in-200-715-delphite-200-white-FST-G24.jpg 16" Sydney LED, 715-Delphite, Guard in 200-White, FST-Frosted Glass, G24 Gooseneck Arm, 200-White 1000 1000 41953
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
66357 62414 product 0 78590 A 0 D 0 0 Brisbane-Gooseneck-16in-975-galvanized-400-barn-red-G22-RIB.jpg 16" Brisbane LED, 975-Galvanized, Guard in 400-Barn Red, RIB-Ribbed Glass, G22 Gooseneck Arm 1000 1000 78590
66971 62583 product 0 79204 A 0 D 0 0 outback-gooseneck-18in-100-black-500-buttery-yellow-CLR-G8-alt_afl9-wj.jpg 18" Outback LED, 500-Buttery Yellow, Guard in 100-Black, CLR-Clear Glass, G8 Gooseneck Arm, 100-Black 1000 1000 79204
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
29723 62583 product 0 41946 A 1 D 0 0 outback-gooseneck-12in-975-galvanized-400-barn-red-FST-G15-alt.jpg 12" Outback LED, 975-Galvanized, Guard in 400-Barn Red, FST-Frosted Glass, G15 Gooseneck Arm, 400-Barn Red 1000 1000 41946
66269 62406 product 0 78502 A 1 D 0 0 sydney-gooseneck-14in-995-raw-brass-100-black-FST-G19.jpg 14" Sydney LED, 995-Natural Raw Copper, With Cap Option, Guard in 100-Black, FST-Frosted Glass, G19 Gooseneck, 100-Black 1000 1000 78502
66352 62414 product 0 78585 A 1 D 0 0 Brisbane-Gooseneck-12in-997-raw-brass-100-black-G15-CLR.jpg 12" Brisbane LED, 997-Natural Raw Brass, With Cap Option, Guard in 100-Black, CLR-Clear Glass, G15 Gooseneck Arm, Mounting in 100-Black 1000 1000 78585
30616 62406 product 0 42848 A 2 D 0 0 sydney-gooseneck-12in-975-galvanized-390-teal-RIB-G15.jpg 12" Sydney LED, 975-Galvanized, Guard in 390-Teal, RIB-Ribbed Glass, G15 Gooseneck Arm 1000 1000 42848
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
66355 62414 product 0 78588 A 2 D 0 0 Brisbane-Gooseneck-16in-700-royal-200-white-G24-RIB_03zz-of.jpg 16" Brisbane LED, 700-Royal Blue, Guard in 200-White, RIB-Ribbed Glass, G24 Gooseneck Arm, Mounting in 200-White 1000 1000 78588
66969 62583 product 0 79202 A 2 D 0 0 outback-gooseneck-16in-600-bronze-RIB-G22-alt_wjhd-ps.jpg 16" Outback LED, 600-Bronze, RIB-Ribbed Glass, G22 Gooseneck Arm 1000 1000 79202
29722 62583 product 0 41945 A 3 D 0 0 outback-gooseneck-20in-307-emerald-green-FST-G65-alt.jpg 20" Outback LED, 307-Emerald Green, FST-Frosted Glass, G65 Gooseneck Arm 1000 1000 41945
29731 62406 product 0 41954 A 3 D 0 0 sydney-gooseneck-16in-490-magenta-100-black-RIB_G8.jpg 16" Sydney LED, 100-Black, Guard in 490-Magenta, RIB-Ribbed Glass, G8 Gooseneck Arm 1000 1000 41954
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
66354 62414 product 0 78587 A 3 D 0 0 Brisbane-Gooseneck-14in-500-buttery-yellow-390-teal-G11-CLR_pkwe-g5.jpg 14" Brisbane LED, 500-Buttery Yellow, Guard in 390-Teal, CLR-Clear Glass, G11 Gooseneck Arm 1000 1000 78587
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
66272 62406 product 0 78505 A 4 D 0 0 sydney-gooseneck-18in-700-royal-blue-RIB-G22_xt9u-0v.jpg 18" Sydney LED, 700-Royal Blue, RIB-Ribbed Glass, G22 Gooseneck Arm 1000 1000 78505
66353 62414 product 0 78586 A 4 D 0 0 Brisbane-Gooseneck-14in-200-white-100-black-CLR_a0g1-xk.jpg 14" Brisbane LED, 200-White, Guard in 100-Black, CLR-Clear Glass, G8 Gooseneck Arm, Mounting in 100-Black 1000 1000 78586
66970 62583 product 0 79203 A 4 D 0 0 outback-gooseneck-14in-715-delphite-705-navy-RIB-G11-alt.jpg 14" Outback LED, 715-Delphite, Guard in 705-Navy, RIB-Ribbed Glass, G11 Gooseneck Arm 1000 1000 79203
22178 62583 product 0 34070 A 5 D 0 0 outback-gooseneck-20in-200-white-FST-G24-alt.jpg 20" Outback LED, 200-White, FST-Frosted Glass, G24 Gooseneck Arm 1000 1000 34070
30640 62414 product 0 42872 A 5 D 0 0 Brisbane-Gooseneck-12in-490-magenta-100-black-G19-CLR.jpg 12" Brisbane LED, 490-Magenta, Guard in 100-Black, CLR-Clear Glass, G19 Gooseneck Arm, Mounting in 100-Black 1000 1000 42872
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
66270 62406 product 0 78503 A 5 D 0 0 sydney-gooseneck-14in-200-white-RIB-G11.jpg 14" Sydney LED, 200-White, RIB-Ribbed Glass, G11 Gooseneck Arm 1000 1000 78503
21601 62414 product 0 33482 A 6 D 0 0 Brisbane-Gooseneck-12in-100-black--975-galvanized-G12-CLR.jpg 12" Brisbane LED, 100-Black, CLR-Clear Glass, G12 Gooseneck Arm, Mounting in 975-Galvanized 1000 1000 33482
64504 62583 product 0 76737 A 6 C 0 0 Exterior-Residential-Outback-Gooseneck-LED-16in-390-teal-G22-CGG-100-Black-CGG-FST-4M5A4422-alt.jpg 16" Outback LED, 390-Teal, G22 Arm, CGG-Standard Guard, 100-Black FST-Frosted Glass | Photo Courtesy of Homeowner 1500 1000 76737
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
66271 62406 product 0 78504 A 6 D 0 0 sydney-gooseneck-12in-307-emerald-green-FST-G26.jpg 12" Sydney LED, 307-Emerald Green, FST-Frosted Glass, G26 Gooseneck Arm 1000 1000 78504
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
62885 62414 product 0 75118 A 7 C 0 0 DSCF2220-Commercial-Exterior-Shopping-Plaza-Brisbane-LED-Gooseneck-12in-G26-600-Bronze.jpg 12" Brisbane LED, 600-Bronze, CLR-Clear Glass, G26 Gooseneck Arm, Decorative Backing Plate Cover 1500 2250 75118
64505 62583 product 0 76738 A 7 C 0 0 Exterior-Residential-Outback-Gooseneck-LED-16in-390-teal-G22-CGG-100-Black-CGG-FST-4M5A4460-alt.jpg 16" Outback LED, 390-Teal, G22 Arm, CGG-Standard Guard, 100-Black FST-Frosted Glass | Photo Courtesy of Homeowner 1500 2250 76738
66831 62406 product 0 79064 A 7 C 0 0 IMG_0877-residential-exterior-lighting-Sydney-LED-Gooseneck-12in-995-Raw-Copper-G35arm-106-Matte-Black-With-Cap-Clear-Glass-HDBP.jpg 12" Sydney LED, 995-Raw Copper, G35 Arm, 106-Matte Black, With Cap, Clear Glass, Heavy Duty Backing Plate | Customer Submission 1351 1920 79064
67771 62406 product 0 80004 A 7 C 0 0 Residential-exterior-lighting-porch-snow-Sydney-LED-Gooseneck-18in-995-Raw-Copper-G24arm-100-Black-With-Cap-Guard-100-Black-Clear-Glass-Decorative-BP-Cover.jpg 18" Sydney LED, 995-Raw Copper, G24 Arm, 100-Black, Cap Guard, 100-Black, Clear Glass, Decorative Backing Plate | Customer Submission 2879 2156 80004
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
62886 62414 product 0 75119 A 8 C 0 0 DSCF2200-Commercial-Exterior-Shopping-Plaza-Brisbane-LED-Gooseneck-12in-G26-600-Bronze.jpg 12" Brisbane LED, 600-Bronze, CLR-Clear Glass, G26 Gooseneck Arm, Decorative Backing Plate Cover 1500 2250 75119
64506 62583 product 0 76739 A 8 C 0 0 Exterior-Residential-Outback-Gooseneck-LED-16in-390-teal-G22-CGG-100-Black-CGG-FST-4M5A4467-alt.jpg 16" Outback LED, 390-Teal, G22 Arm, CGG-Standard Guard, 100-Black FST-Frosted Glass | Photo Courtesy of Homeowner 1500 2250 76739
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
62187 62414 product 0 74420 A 9 C 0 0 Brisbane_LED_Gooseneck_12in_100_Black_G11arm3.jpg 12" Brisbane LED, 100-Black, G11 Gooseneck Arm | Photo Courtesy of Customer 1500 1881 74420
64507 62583 product 0 76740 A 9 C 0 0 Exterior-Residential-Outback-Gooseneck-LED-16in-390-teal-G22-CGG-100-Black-CGG-FST-4M5A4470-alt.jpg 16" Outback LED, 390-Teal, G22 Arm, CGG-Standard Guard, 100-Black FST-Frosted Glass | Photo Courtesy of Homeowner 1500 1000 76740
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
65519 62414 product 0 77752 A 10 C 0 0 20220416_160254-residential-exterior-lighting-garage-Brisbane-LED-Gooseneck-16in-106-Matte-Black-G11arm-No-Cap-400-Barn-Red-Clear-Glass.jpg 16" Brisbane LED, 106-Matte Black, G11 Arm, No Cap, 400-Barn Red, Clear Glass | Photo Courtesy of Homeowner 1440 2194 77752
62186 62414 product 0 74419 A 11 C 0 0 Brisbane_LED_Gooseneck_12in_100_Black_G11arm2.jpg 12" Brisbane LED, 100-Black, G11 Gooseneck Arm | Photo Courtesy of Customer 1500 1970 74419
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
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
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
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