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 (64738, 62167, 62273, 62062) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00151

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": 51,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (64738,62167,62273,62062)"
        }
      }
    },
    "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
19706 62062 product 0 31495 A 0 D 0 0 Aero-gooseneck-14in-995-copper-G24.jpg 14" Aero Vented, 995-Natural Raw Copper, Circle Vents, G24 Gooseneck Arm, Decorative Backing Plate & Hex Cover 1000 1000 31495
21075 62273 product 0 32916 A 0 D 0 0 cherokee-stem-14in-Barn-Red.jpg 14" Cherokee, 400-Barn Red, FST-Frosted Glass 1000 1000 32916
37565 64738 product 0 49798 A 0 D 0 0 Aero-Sconce-12in-705-navy.jpg 12" Aero Wall Sconce, 705-Navy 1000 1000 49798
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
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
22260 62273 product 0 34157 A 1 D 0 0 cherokee-stem-16in-600-bronze.jpg 16" Cherokee, 600-Bronze, FST-Frosted Glass 1000 1000 34157
64152 62062 product 0 76385 A 1 D 0 0 Aero-gooseneck-vented-16in-490-magenta-100-black-G8.jpg 16" Aero, 490-Magenta, Circle Vents, G8 Gooseneck Arm, 100-Black 1000 1000 76385
64169 64738 product 0 76402 A 1 D 0 0 Aero-Sconce-14in-galvanized-CGG-RIB.jpg 14" Aero Wall Sconce, 975-Galvanized, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 76402
29796 62273 product 0 42019 A 2 D 0 0 cherokee-stem-16in-975-galvanized-HSC.jpg 16" Cherokee, 975-Galvanized, FST-Frosted Glass, Hang Straight Canopy 1000 1000 42019
37567 64738 product 0 49800 A 2 D 0 0 Aero-Sconce-12in-580-Sunflower.jpg 12" Aero Wall Sconce, 580-Sunflower 1000 1000 49800
64150 62062 product 0 76383 A 2 D 0 0 Aero-gooseneck-vented-16in-100-black-G19-975-galvanized.jpg 16" Aero, 100-Black, Circle Vents, G19 Gooseneck Arm, 975-Galvanized 1000 1000 76383
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
19734 62062 product 0 31523 A 3 D 0 0 Aero-gooseneck-vented-12in-997-raw-brass-G14.jpg 12" Aero Vented, 997-Natural Raw Brass, Narrow Slot Vents, G14 Straight Arm 1000 1000 31523
21077 62273 product 0 32918 A 3 D 0 0 cherokee-stem-18in-705-navy.jpg 18" Cherokee, 705-Navy, FST-Frosted Glass 1000 1000 32918
64170 64738 product 0 76403 A 3 D 0 0 Aero-Sconce-16in-100-black-WC-975-galvanized.jpg 16" Aero Wall Sconce, 100-Black, Wire Cage, 975-Galvanized 1000 1000 76403
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
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
21074 62273 product 0 32915 A 4 D 0 0 cherokee-stem-12in-200-white.jpg 12" Cherokee, 200-White, FST-Frosted Glass 1000 1000 32915
37566 64738 product 0 49799 A 4 D 0 0 Aero-Sconce-14in-480-blush-pink.jpg 12" Aero Wall Sconce, 480-Blush Pink 1000 1000 49799
64151 62062 product 0 76384 A 4 D 0 0 Aero-gooseneck-vented-16in-307-emerald-G13-WC-975-galvanized.jpg 16" Aero, 307-Emerald Green, Circle Vents, Wire Cage, 975-Galvanized, G13 Gooseneck 1000 1000 76384
29794 62273 product 0 42017 A 5 D 0 0 cherokee-stem-12in-715-delphite.jpg 12" Cherokee, 715-Delphite Blue, FST-Frosted Glass 1000 1000 42017
59058 64738 product 0 71291 A 5 D 0 0 Aero-Sconce-12in-307-emerald-green.jpg 12" Aero Wall Sconce, 307-Emerald Green 1000 1000 71291
64149 62062 product 0 76382 A 5 D 0 0 Aero-gooseneck-vented-14-400-barn-red-G11.jpg 14" Aero Vented, 400-Barn Red, Narrow Slot Vents, G11 Gooseneck Arm 1000 1000 76382
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
22259 62273 product 0 34156 A 6 D 0 0 cherokee-stem-14in-307-emerald-green.jpg 14" Cherokee, 307-Emerald Green, FST-Frosted Glass 1000 1000 34156
64153 62062 product 0 76386 A 6 D 0 0 Aero-gooseneck-vented-16in-705-navy-G22-980-brushed-aluminum.jpg 16" Aero, 705-Navy, Circle Vents, G22 Gooseneck Arm, 980-Brushed Aluminum 1000 1000 76386
64171 64738 product 0 76404 A 6 D 0 0 Aero-Sconce-16in-200-white.jpg 16" Aero Wall Sconce, 200-White 1000 1000 76404
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
19707 62062 product 0 31496 A 7 D 0 0 Aero-gooseneck-vented-12in-570-sunflower-G15.jpg 12" Aero Vented, 570-Sunflower, Narrow Slot Vents, G15 Gooseneck Arm 1000 1000 31496
37554 64738 product 0 49787 A 7 C 0 0 astro-sconce-bronze.jpg 12" Aero Wall Sconces, 600-Bronze | Photo Courtesy of Customer 500 700 49787
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
67861 62273 product 0 80094 A 7 C 0 0 IMG_5581-residential-interior-lighting-garage-studio-Cherokee-Uplight-Stem-Mount-Pendant-18in-300-Dark-Green-Heavy-Duty-Canopy-Clear-Glass-24in-36in-48in-stems.jpg 18" Cherokee Uplight Stem Mount, 300-Dark Green, Heavy Duty Canopy, Clear Glass, 24"/36"/48" Stems | Customer Submission 3024 4032 80094
28546 62273 product 0 40745 A 8 C 0 0 IMG_0615.jpg 12" Cherokee, 100-Black | Photo Courtesy of www.everythingemilyblog.com 624 936 40745
37558 64738 product 0 49791 A 8 C 0 0 astro-sconce-white.jpg 12" Aero Wall Sconce, 200-White | Photo Courtesy of Customer 500 700 49791
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
58977 62062 product 0 71210 A 8 C 0 0 Aero_Vented_Gooseneck_Light_-_805_Charcoal_Granite_Barn_Light_Electric_-_Barn_Lighting.jpg 12” Aero Vented Gooseneck Light, 805-Charcoal Granite, Narrow Slot Vents, G26 Gooseneck Arm in 980-Brushed Aluminum | Photo Courtesy of Homeowner 1500 1039 71210
49036 62273 product 0 61269 A 9 C 0 0 cherokee-stem-mount-100-black.jpg 12" Cherokee, 100-Black | Photo Courtesy of www.everythingemilyblog.com 1500 1000 61269
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
58978 62062 product 0 71211 A 9 C 0 0 Aero_Vented_Gooseneck_Light_-_Barn_Light_Electric_-_Horse_Stable_Lighting.jpg 12” Aero Vented Gooseneck Light, 805-Charcoal Granite, Narrow Slot Vents, G26 Gooseneck Arm in 980-Brushed Aluminum | Photo Courtesy of Homeowner 1387 1552 71211
60356 64738 product 0 72589 A 9 C 0 0 Aero_Wall_Sconce_-_Barn_Light_Electric_-_Kitchen_Wall_Sconce_Lighting.JPG 12" Aero Wall Sconce, 300-Dark Green (Also Pictured: Outback Pendant Light) | Photo Courtesy of Ann Kelly Interiors (@annkellyinteriors) 1204 1186 72589
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
64642 64738 product 0 76875 A 10 C 0 0 residential-interior-bathroom-vanity-Aero-Wall-Sconce-12in-550-Yellow.jpg 12" Aero Wall Sconce, 550-Yellow 750 1000 76875
65538 62273 product 0 77771 A 10 C 0 0 image_6487329-residential-exterior-lighting-porch-patio-Cherokee-Uplight-Stem-Mount-Pendant-16in-975-Galvanized-12in-Stem-Clear-Glass.JPG 16" Cherokee Uplight Stem Mount, 975-Galvanized, 12" Stem, Clear Glass | Photo Courtesy of Homeowner 880 733 77771
61408 62273 product 0 73641 A 11 C 0 0 Cherokee_Stem_Mount_Pendant_-_100_Black_Barn_Light_Electric_-_Front_Door_Lighting.jpg 12" Cherokee, 100-Black | Photo Courtesy of www.everythingemilyblog.com 1500 1000 73641
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
49035 62273 product 0 61268 A 12 C 0 0 cherokee-stem-mount-pendant-100-black.jpg 12" Cherokee, 100-Black | Photo Courtesy of www.everythingemilyblog.com 1500 2250 61268
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
48989 62273 product 0 61222 A 13 C 0 0 ceiling_pendant_lighting-1270x869.jpeg 18” Cherokee Stem Mount, 400-Barn Red, FST-Frosted Glass, Hang Straight Canopy | Photo Courtesy of Henry Waszczuk 1270 869 61222
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
65539 62273 product 0 77772 A 14 C 0 0 image_6487329-residential-exterior-lighting-porch-patio-Cherokee-Uplight-Stem-Mount-Pendant-16in-975-Galvanized-12in-Stem-Clear-Glass_g88u-n0.JPG 16" Cherokee Uplight Stem Mount, 975-Galvanized, 12" Stem, Clear Glass | Photo Courtesy of Homeowner 880 733 77772
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