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 (65691, 64772, 65684, 65694) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00088

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": 36,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (65691,64772,65684,65694)"
        }
      }
    },
    "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
66913 65684 product 0 79146 A 0 D 0 0 Original-Gooseneck-12in-100-black.jpg 12" The Original™, 100-Black, G11 Gooseneck Arm 1000 1000 79146
67057 65691 product 0 79290 A 0 D 0 0 Aero-basic-gooseneck-12in-300-dark-green-G1.jpg 12" Aero, 300-Dark Green, G1 Straight Arm 1000 1000 79290
67093 65694 product 0 79326 A 0 D 0 0 wilcox-basic-gooseneck-12in-200-white-G1.jpg 12" Wilcox, 200-White, G1 Straight Arm 1000 1000 79326
67094 65694 product 0 79327 A 0 D 0 0 wilcox-basic-gooseneck-20in-100-black-G22.jpg 20" Wilcox, 100-Black, G22 Gooseneck Arm 1000 1000 79327
67095 65694 product 0 79328 A 0 D 0 0 wilcox-basic-gooseneck-12in-300-dark-green-G11.jpg 12" Wilcox, 300-Dark Green, G11 Gooseneck Arm 1000 1000 79328
38929 64772 product 0 51162 A 1 D 0 0 Fire-Chief-gooseneck-14in-307-emerald-green-G35.jpg 14" Fire Chief, 307-Emerald Green, G35 Gooseneck Arm 1000 1000 51162
66908 65684 product 0 79141 A 1 D 0 0 original-gooseneck-16in-250-white-G1.jpg 16" The Original™, 200-White, G1 Straight Arm 1000 1000 79141
67058 65691 product 0 79291 A 1 D 0 0 Aero-basic-gooseneck-16in-200-white-G22.jpg 16" Aero, 200-White, G22 Gooseneck Arm 1000 1000 79291
67059 65691 product 0 79292 A 2 D 0 0 Aero-basic-gooseneck-12in-100-black-G11.jpg 12" Aero, 100-Black, G11 Gooseneck Arm 1000 1000 79292
67073 65684 product 0 79306 A 2 D 0 0 original-gooseneck-16in-605-Rust-G22.jpg 16" The Original™, 605-Rust, G22 Gooseneck Arm 1000 1000 79306
38902 64772 product 0 51135 A 3 D 0 0 fire-chief-gooseneck-12in-400-barn-red-G22.jpg 12" Fire Chief, 400-Barn Red, G22 Gooseneck Arm 1000 1000 51135
68019 65684 product 0 80252 A 3 C 0 0 IMG_3285-residential-exterior-lighting-garage-Basics-Original-Gooseneck-16in-24in-100-Black-G22arm.jpg 16" The Original™, 100-Black, G22 Arm | Customer Submission 2377 1387 80252
38906 64772 product 0 51139 A 4 D 0 0 fire-Chief-gooseneck-14in-975-galvanized-G13.jpg 14" Fire Chief, 975-Galvanized, G13 Gooseneck Arm 1000 1000 51139
66910 65684 product 0 79143 A 4 C 0 0 original_gooseneck_light_barn_light_electric_16in_100-black_g22arm.jpg 16" The Original™, 100-Black, G22 Gooseneck Arm 1500 2000 79143
38909 64772 product 0 51142 A 5 D 0 0 Fire-Chief-gooseneck-14in-300-dark-green-G24-975-galvanized-WC.jpg 14" Fire Chief, 300-Dark Green, Wire Cage, 975-Galvanized, G24 Gooseneck Arm 1000 1000 51142
67244 65684 product 0 79477 A 5 C 0 0 barn_light-exterior-residential-barn-original-gooseneck-G22-black-rain-water-dew-3.jpg 16" The Original™, 100-Black, G22 Gooseneck Arm 1100 733 79477
38927 64772 product 0 51160 A 6 D 0 0 fire-chief-gooseneck-12in-490-magenta-980-brushed-aluminum-G14-CGG-FST.jpg 12" Fire Chief, 490-Magenta, CGG-Standard Cast Guard, 975-Galvanized, FST-Frosted Glass, G14 Straight Arm, 980-Brushed Aluminum 1000 1000 51160
67243 65684 product 0 79476 A 6 C 0 0 Original_Gooseneck_Light_12in_100-Black_G1-residential-interior-kitchen-on.JPG 12" The Original™, 100-Black, G1 Straight Arm 1500 2000 79476
38928 64772 product 0 51161 A 7 D 0 0 fire-chief-gooseneck-12in-705-navy-G11.jpg 12" Fire Chief, 705-Navy, G11 Gooseneck Arm 1000 1000 51161
67245 65684 product 0 79478 A 7 C 0 0 original_warehouse_gooseneck_light_16in_black_g22.jpg 16" The Original™, 100-Black, G22 Gooseneck Arm 1500 1500 79478
38931 64772 product 0 51164 A 8 C 0 0 coco-and-kelly-firechiefs-black-150.jpg 12" Fire Chief, 100-Black, G7 Gooseneck Arm | Featured on Coco + Kelley blog, photo courtesy of Belathée 600 850 51164
67246 65684 product 0 79479 A 8 C 0 0 residential-exterior-porch-Original-Warehouse-Gooseneck-Light-16in-150-Black-G22arm-150-Black-porcelain.jpg 16" The Original™, 100-Black, G22 Gooseneck Arm 1500 2000 79479
56135 64772 product 0 68368 A 9 C 0 0 angle_shade_lights_wall_lights-908x1024-681x768_-_Barn_Light_Electric_-_Wall_Sign_Lighting_a8rf-w5.jpg Fire Chief Sign Lights, 12” Shades in 100-Black, G12 Gooseneck Arm | Photo Courtesy of Carla Abusada and Bona S.A. 681 768 68368
54156 64772 product 0 66389 A 10 C 0 0 desk-commercial-interior-restaurant-sign-light-fire-chief-gooseneck-G7-white-porcelain.jpg 10” Fire Chief, 200-White, G7 Gooseneck Arms | Photo Courtesy of Erin Edwards of PSG Construction and Gusto 1136 756 66389
38913 64772 product 0 51146 A 11 C 0 0 frontier_angle_shae_14in_blk_G22arm_black_HDBP4.jpg 14” Fire Chief, 100-Black, G22 Gooseneck Arm, Heavy Duty Backing Plate | Photo Courtesy of Eric and Patrick of Bespoke Home 7 Life in Collingswood, New Jersey 1000 727 51146
38904 64772 product 0 51137 A 12 C 0 0 yellow_angle_shade_insetting.jpg 10" Fire Chief Angle Shade, 500-Buttery Yellow, G26 Gooseneck Arm | Photo Courtesy of Kim Lewis with "Bar Rescue." 801 550 51137
38910 64772 product 0 51143 A 13 C 0 0 frontier_angle_shade_10in_textured_black_g5arm.jpg 10" Fire Chief, 105-Textured Black, G5 Gooseneck Arm | Photo Courtesy of RE/MAX Eastern Realty, Inc. 699 1078 51143
38903 64772 product 0 51136 A 14 C 0 0 firechief_angle_shade_100_black_g26_nickelfish.jpg 10" Fire Chief Angle Shade, 100-Black, G26 Gooseneck Arm | Photo Courtesy of Customer 900 700 51136
38932 64772 product 0 51165 A 16 C 0 0 fire_chief_porcelain_sign_light-512x768.jpg 8" Fire Chief, 311-Jadite | Photo Courtesy of Kim Lewis Design & TLC's Bakery Boss 512 768 51165
53511 64772 product 0 65744 A 17 C 0 0 fire_chief_porcelain_sign_light_10in_150_black_G64arm_galvanized_swivel_knuckle2.jpg 10” Fire Chief, 100-Black, G64 Gooseneck Arms | Photo Courtesy of Elle Designs and Stacy Wolf Photography 1500 927 65744
54159 64772 product 0 66392 A 18 C 0 0 Gusto_066-commercial-interior-restaurant-sign-light-fire-chief-gooseneck-G7-250-white-porcelain-high-res.jpg 10” Fire Chief, 250-White, G7 Gooseneck Arms | Photo Courtesy of Erin Edwards of PSG Construction and Gusto 1500 891 66392
38905 64772 product 0 51138 A 19 C 0 0 decatur_kitchen_4.jpg 8" Fire Chief Angle Shades, 200-White, G8 Gooseneck Arm, 100-Black | Photo Courtesy of Jennifer Lee Kessler - jenniferkesslerphotography.com 900 1280 51138
38911 64772 product 0 51144 A 20 C 0 0 angle_shade_sign_lighting__2_.jpg 8” Fire Chief, 200-White | Photo Courtesy of Customer 1500 1000 51144
66823 64772 product 0 79056 A 22 C 0 0 tree-residential-exterior-lighting-A-frame-Fire-Chief-Sign-Light-14in-997-Raw-Brass-G24arm-Wire-Guard-106-Matte-Black-Clear-Glass-Dusk-to-Dawn-Photocell.jpg 14" Fire Chief, 997-Raw Brass, G24 Arm, Wire Guard, 106-Matte Black, Clear Glass, Dusk to Dawn Photocell | Photo Courtesy of Brittany Hislop 1500 1998 79056
66824 64772 product 0 79057 A 23 C 0 0 Barnlight-residential-exterior-lighting-A-frame-Fire-Chief-Sign-Light-14in-997-Raw-Brass-G24arm-Wire-Guard-106-Matte-Black-Clear-Glass-Dusk-to-Dawn-Photocell.jpg 14" Fire Chief, 997-Raw Brass, G24 Arm, Wire Guard, 106-Matte Black, Clear Glass, Dusk to Dawn Photocell | Photo Courtesy of Brittany Hislop 1500 1998 79057
67110 64772 product 0 79343 A 24 C 0 0 residential-interior-lighting-Fire-Chief-Sign-Light-8in-570-Sunflower-G11arm-980-Brushed-Aluminum.jpg 8" Fire Chief Sign Light, 570-Sunflower, G11 Arm, 980- Brushed Aluminum | Customer Submission 1500 1215 79343