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 (64848, 64944, 65067, 64985) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00096

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": 32,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (64848,64944,65067,64985)"
        }
      }
    },
    "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
41720 64848 product 0 53953 A 0 D 0 0 conoco-stem-and-loop-10in-250-white-brass-knob-switch-ble.jpg 10" Conoco Stem & Loop, 250-White, BK-Brass with Knob Switch, Putty Cotton Twist Cord, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 53953
49272 64944 product 0 61505 A 0 D 0 0 Timber-Ore-Conoco-Draftsman-Pendant-Ash-Barn-Red-Black-Twist-Cord-Edison-Style-1890-Era-40-Watt-Bulb.jpg 12" Shade in 400-Barn Red, Ash Wood, TBK-Black Twist Cord, Canopy in 400-Barn Red (Shown with Edison 1890 Era Bulb) 1000 1000 61505
51770 65067 product 0 64003 A 0 D 0 0 sinclair-industrial-pendant-12in-997-raw-brass-knob-switch-CSGW.jpg 12" Sinclair Industrial Pendant, 997-Natural Raw Brass, Brass Socket with Knob Switch, CSGW-Gold & White Cloth Cord, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 64003
65091 64985 product 0 77324 A 0 D 0 0 conoco-LED-cord-15in-480-blush-pibk-CSBP.jpg 15" Conoco LED, 480-Blush Pink, CSBP-Black & Pink Cloth Cord, Domed Lens 1000 1000 77324
41726 64848 product 0 53959 A 1 D 0 0 conoco-stem-and-loop-12in-390-teal-black-paddle-switch-ble.jpg 12" Conoco Stem & Loop, 390-Teal, NP-Nickel with Black Paddle Switch, Black Cotton Twist Cord, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 53959
49019 64944 product 0 61252 A 1 D 0 0 Timber-Ore-Conoco-Draftsman-Pendant-Maple-Delphite-LED-T14-120-Lumen-Bulb.jpg 10" Shade in 765-Porcelain Delphite, Maple Wood, SWH-Standard White Cord (Shown with LED T14 120 Lumen Bulb) 1000 1000 61252
50257 64985 product 0 62490 A 1 D 0 0 conoco-LED-cord-12in-100-black-CSBG.jpg 12" Conoco LED, 100-Black, CSBG-Black & Gold Cloth Cord, Domed Lens 1000 1000 62490
41723 64848 product 0 53956 A 2 D 0 0 conoco-stem-and-loop-12in-100-black-brass-paddle-switch-ble.jpg 12" Conoco Stem & Loop, 100-Black, BP-Brass with Black Paddle Switch, Putty Cotton Twist Cord, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 53956
50911 64944 product 0 63144 A 2 D 0 0 Timber-Ore-Conoco-Draftsman-Pendant-Ash-Brass-Edison-30Watt-Hairpin-Bulb.jpg 12" Shade in 997-Natural Raw Brass, Ash Wood, CSGW-Gold & White Cloth Cord (Shown with Totem III Tala Lamp) 1000 1000 63144
51771 65067 product 0 64004 A 2 D 0 0 sinclair-industrial-pendant-12in-480-blush-pink-nickel-socket-knob-switch-CSBP.jpg 12" Sinclair Industrial Pendant, 480-Blush Pink, Nickel Socket with Knob Switch, CSBP-Black & Pink Cloth Cord, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 64004
65092 64985 product 0 77325 A 2 D 0 0 conoco-LED-cord-15in-buttery-yellow-CSUW.jpg 15" Conoco LED, 500-Buttery Yellow, CSUW-Blue & White Cloth Cord, Domed Lens 1000 1000 77325
49271 64944 product 0 61504 A 3 D 0 0 Timber-Ore-Conoco-Draftsman-Pendant-Walnut-Magenta-Black-Pink-Cloth-Cord-LED-T14-120-Lumen-Bulb.jpg 12" Shade in 490-Magenta, Walnut Wood, CSBP-Black & Pink Cloth Cord, Walnut Canopy Cover (Shown with LED T14 120 Lumen Bulb) 1000 1000 61504
51790 65067 product 0 64023 A 3 D 0 0 sinclair-industrial-pendant-14in-100-black-brass-paddle-switch-CSBG.jpg 14" Sinclair Industrial Pendant, 100-Black, Black Socket with Paddle Switch, CSBG-Black & Gold Cloth Cord, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 64023
65071 64848 product 0 77304 A 3 D 0 0 conoco-stem-and-loop-15in-480-blush-pink-nickel-knob-switch-ble.jpg 15" Conoco Stem & Loop, 480-Blush Pink, NK-Nickel with Knob Switch, Black Cotton Twist Cord, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 77304
41724 64848 product 0 53957 A 4 D 0 0 conoco-stem-and-loop-12in-307-emerald-brass-no-switch-ble.jpg 12" Conoco Stem & Loop, 307-Emerald Green, BS-Brass with No Switch, Putty Cotton Twist Cord, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 53957
49020 64944 product 0 61253 A 4 D 0 0 Timber-Ore-Conoco-Draftsman-Pendant-Walnut-Barn-Red-Brown-Twist-Cord-Edison-Style-1890-Era-40-Watt-Bulb.jpg 12" Shade in 400-Barn Red, Walnut Wood, TBR-Brown Twist Cord (Shown with Edison 1890 Era Bulb) 1000 1000 61253
51789 65067 product 0 64022 A 4 D 0 0 sinclair-industrial-pendant-14in-975-galvanized-100-black-paddle-switch-TBW.jpg 14" Sinclair Industrial Pendant, 975-Galvanized, Black Socket with Paddle Switch, TBW-Black & White Cotton Twist Cord, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 64022
41725 64848 product 0 53958 A 5 D 0 0 conoco-stem-and-loop-10in-975-galvanized-nickel-no-switch-ble.jpg 10" Conoco Stem & Loop, 975-Galvanized, NS-Nickel with No Switch, Black Cotton Twist Cord, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 53958
51788 65067 product 0 64021 A 5 D 0 0 sinclair-industrial-pendant-10in-307-emerald-brass-no-switch-TBB.jpg 10" Sinclair Industrial Pendant, 307-Emerald Green, Brass Socket with No Switch, TBB-Brown & Beige Cotton Twist Cord, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 64021
59003 64944 product 0 71236 A 5 C 0 0 Conoco_Draftsman_Wooden_Top_Pendant_Light_-_Barn_Light_Electric_-_Farmhouse_Kitchen_Sink_Light.jpg 10” Shade in 400-Barn Red, Walnut Wood, CSBG-Black & Gold Cloth Cord | Photo Courtesy of Lisa Davenport of LDD Interiors 1024 1365 71236
65090 64985 product 0 77323 A 5 D 0 0 conoco-LED-cord-12in-400-barn-red-CRD.jpg 12" Conoco LED, 400-Barn Red, CSR-Red Cloth Cord, Flat Lens 1000 1000 77323
51795 65067 product 0 64028 A 6 C 0 0 skylark_industrial_pendant_16in_200_white_goldwhiteclothcord_brass_socket2.jpg 16" Sinclair Industrial Pendant, 200-White, CSGW-Gold and White Cloth Cord, BS-Brass Socket with No Switch | Photo Courtesy of Taylor Newton Photography 1500 1200 64028
59004 64944 product 0 71237 A 6 C 0 0 Conoco_Draftsman_Wooden_Top_Pendant_-_Barn_Light_Electric_-_Kitchen_Lighting.jpg 10” Shade in 400-Barn Red, Walnut Wood, CSBG-Black & Gold Cloth Cord | Photo Courtesy of Lisa Davenport of LDD Interiors 1024 1365 71237
65070 64848 product 0 77303 A 6 D 0 0 conoco-stem-and-loop-15in-355-jadite-nickel-no-switch-ble.jpg 15" Conoco Stem & Loop, 355-Jadite, NS-Nickel with No Switch, Black Cotton Twist Cord, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 77303
65089 64985 product 0 77322 A 6 D 0 0 conoco-LED-cord-12in-390-teal-CSGW.jpg 12" Conoco LED, 390-Teal, CSGW-Gold & White Cloth Cord, Flat Lens 1000 1000 77322
41721 64848 product 0 53954 A 7 C 0 0 conoco_sl_brass_graphite.jpg Conoco Stem & Loop Pendant, 850-Graphite, BS-Natural Brass with No Switch, Nostalgic Edison 20 Watt Hairpin Bulb 800 1120 53954
49334 64944 product 0 61567 A 7 C 0 0 timber-ore-conoco-cord-pendant-residential-kitchen.jpg 12" Shade in 400-Barn Red, Ash Wood, SBK-Standard Black Cord 1500 2250 61567
67479 64848 product 0 79712 A 7 C 0 0 110-residential-interior-lighting-kitchen-Conoco-Stem-Loop-Pendant-12in-307-Emerald-Green-Black-Cotton-Twist-18in-stem-Brass-Socket-Black-Paddle-Switch.jpg 12" Conoco Stem & Loop Pendant, 307-Emerald Green, Black Cotton Twist Cord, 18" Stem, Brass Socket, Black Paddle Switch | Photo Courtesy of Southbound Stays 4016 6016 79712
67480 64848 product 0 79713 A 7 C 0 0 int_37-residential-interior-lighting-kitchen-Conoco-Stem-Loop-Pendant-12in-307-Emerald-Green-Black-Cotton-Twist-18in-stem-Brass-Socket-Black-Paddle-Switch.jpg 12" Conoco Stem & Loop Pendant, 307-Emerald Green, Black Cotton Twist Cord, 18" Stem, Brass Socket, Black Paddle Switch | Photo Courtesy of Southbound Stays 6016 4016 79713
55434 64944 product 0 67667 A 8 C 0 0 RR-Early_Avery_Rafterhouse_kitchen_2.jpg (2) 12" Shade in 100-Black, Ash Wood, CSB-Black Cloth Cord | Photo Courtesy of Early Avery - Rafterhouse and Roehner+Ryan 1500 2000 67667
55435 64944 product 0 67668 A 9 C 0 0 RR-Early_Avery_Rafterhouse_light_detail.jpg (2) 12" Shade in 100-Black, Ash Wood, CSB-Black Cloth Cord | Photo Courtesy of Early Avery - Rafterhouse and Roehner+Ryan 1500 1125 67668
55433 64944 product 0 67666 A 10 C 0 0 RR-Early_Avery_Rafterhouse_kitchen_1.jpg (2) 12" Shade in 100-Black, Ash Wood, CSB-Black Cloth Cord | Photo Courtesy of Early Avery - Rafterhouse and Roehner+Ryan 1500 1125 67666