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 (65889, 65836, 65891, 65964) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00069

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": 42,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (65889,65836,65891,65964)"
        }
      }
    },
    "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
72735 65889 product 0 84968 A 0 D 0 0 Ellington-LED-pendant-chain-12in-100-black-barn-red-swirl-cord.jpg 12" Cassidy LED Globe Chain Pendant, 100-Black, Barn Red & Black Swirl Cloth Cord 1000 1000 84968
72736 65889 product 0 84969 A 0 D 0 0 Ellington-LED-pendant-chain-16in-975-Galvanized-silver-cloth-cord.jpg 16" Cassidy LED Globe Chain Pendant, 975-Galvanized, Silver Cloth Cord 1000 1000 84969
72737 65889 product 0 84970 A 0 D 0 0 Ellington-LED-pendant-chain-12in-607-taupe-creme-cloth-cord.jpg 12" Cassidy LED Globe Chain Pendant, 607-Taupe, Creme Cloth Cord 1000 1000 84970
72738 65889 product 0 84971 A 0 D 0 0 Ellington-LED-pendant-chain-16in-206-matte-white-rust-cloth-cord.jpg 16" Cassidy LED Globe Chain Pendant, 206-Matte White, Rust Cloth Cord 1000 1000 84971
72780 65891 product 0 85013 A 0 D 0 0 Ellington-LED-pendant-flush-12in-607-taupe.jpg 12" Cassidy LED Globe Flush Mount Light, 607-Taupe 1000 1000 85013
72781 65891 product 0 85014 A 0 D 0 0 Ellington-LED-pendant-flush-16in-206-matte-white.jpg 16" Cassidy LED Globe Flush Mount Light, 206-Matte White 1000 1000 85014
72782 65891 product 0 85015 A 0 D 0 0 Ellington-LED-pendant-flush-12in-100-black.jpg 12" Cassidy LED Globe Flush Mount Light 1000 1000 85015
72783 65891 product 0 85016 A 0 D 0 0 Ellington-LED-pendant-flush-16in-975-galvanized.jpg 16" Cassidy LED Globe Flush Mount Light, 975-Galvanized 1000 1000 85016
73892 65836 product 0 86125 A 0 D 0 0 carver-sconce-16in-430-soft-clay-maple-wood.jpg 16" Carver LED Wooden Diffuser Light, 430-Soft Clay, Maple Wood Diffuser 1000 1000 86125
74215 65964 product 0 86448 A 0 D 0 0 isos-studio-pendant-12in-206-matte-white-standard-white-cord-ash-wood_rjkh-6g.jpg 12" Isos LED Cone Studio Pendant Light, 206-Matte White, Optional Wood Top, Ash Wood, Standard White Cord 1000 1000 86448
74216 65964 product 0 86449 A 0 D 0 0 isos-studio-pendant-32in-605-textured-rust-rust-cloth-cord_oeus-7r.jpg 32" Isos LED Cone Studio Pendant Light, 605-Textured Rust, Rust Cloth Cord 1000 1000 86449
74217 65964 product 0 86450 A 0 D 0 0 isos-studio-pendant-24in-390-teal-standard-black-cord-walnut_t0zw-jh.jpg 24" Isos LED Cone Studio Pendant Light, 390-Teal, Optional Wood Top, Walnut Wood, Standard Black Cord 1000 1000 86450
74218 65964 product 0 86451 A 0 D 0 0 isos-studio-pendant-12in-607-taupe-standard-black-cord_og49-94.jpg 12" Isos LED Cone Studio Pendant Light, 607-Taupe, Standard Black Cord 1000 1000 86451
74219 65964 product 0 86452 A 0 D 0 0 isos-studio-pendant-32in-300-dark-green-emerald-green-cloth-cord_aw5w-2p.jpg 32" Isos LED Cone Studio Pendant Light, 300-Dark Green, Emerald Green Cloth Cord 1000 1000 86452
74220 65964 product 0 86453 A 0 D 0 0 isos-studio-pendant-24in-615-oil-rubbed-bronze-rust-cloth-cord-maple-wood_hyco-so.jpg 24" Isos LED Cone Studio Pendant Light, 615-Oil-Rubbed Bronze, Optional Wood Top, Maple Wood, Rust Cloth Cord 1000 1000 86453
74221 65964 product 0 86454 A 0 D 0 0 isos-studio-pendant-12in-975-galvanized-standard-black-cord_yr4u-u7.jpg 12" Isos LED Cone Studio Pendant Light, 975-Galvanized, Standard Black Cord 1000 1000 86454
74222 65964 product 0 86455 A 0 D 0 0 isos-studio-pendant-24in-320-fern-green-fern-green-cloth-cord_hzbi-65.jpg 24" Isos LED Cone Studio Pendant Light, 320-Fern Green, Fern Green Chevron Cloth Cord 1000 1000 86455
74223 65964 product 0 86456 A 0 D 0 0 adjustable.jpg 1000 1000 86456
74224 65964 product 0 86457 A 0 D 0 0 FSC-stustainable-hardwoods_th56-dt.jpg 1000 1000 86457
74225 65964 product 0 86458 A 0 C 0 0 5izEn-YcRbI-commercial-interior-restaurant-isos-studio-pendant-100-black-32in-12in-crop.jpg 12" and 32" Isos, 100-Black, Standard Black Cord 1000 1000 86458
74226 65964 product 0 86459 A 0 C 0 0 2181919-commercial-interior-classroom-isos-studio-pendant-24in-705-navy-standard-white-cord-crop.jpg 24" Isos, 705-Navy, Standard White Cord 1000 1000 86459
74227 65964 product 0 86460 A 0 C 0 0 904099468-residential-interior-dining-room-table-isos-32in-100-black-maple-wood-studio-pendant-standard-black-cord-crop_y9tj-ek.jpg 32" Isos, 100-Black, Optional Wood Top, Maple Wood, Standard Black Cord 1000 1000 86460
74228 65964 product 0 86461 A 0 C 0 0 1007074880-residential-interior-bedroom-isos-studio-pendant-12in-crop.jpg 12" Isos, 605-Textured Rust, Standard Black Cord 1000 1000 86461
73887 65836 product 0 86120 A 1 D 0 0 carver-flush-mount-16in-300-dark-green-oak-wood_copy.jpg 16" Carver LED Wooden Diffuser Light, 300-Dark Green, Oak Wood Diffuser 1000 1000 86120
73896 65836 product 0 86129 A 2 D 0 0 carver-sconce-20in-200-white-walnut-wood.jpg 20" Carver LED Wooden Diffuser Light, 200-White, Walnut Wood Diffuser 1000 1000 86129
73888 65836 product 0 86121 A 3 D 0 0 carver-flush-mount-16in-996-weathered-copper-oak-wood_copy.jpg 16" Carver LED Wooden Diffuser Light, 996-Natural Weathered Copper, Oak Wood Diffuser 1000 1000 86121
73894 65836 product 0 86127 A 4 D 0 0 carver-sconce-16in-975-galvanized-oak-wood.jpg 16" Carver LED Wooden Diffuser Light, 975-Galvanized, Oak Wood Diffuser 1000 1000 86127
73886 65836 product 0 86119 A 5 D 0 0 carver-flush-mount-12in-630-beige-maple-wood_copy.jpg 12" Carver LED Wooden Diffuser Light, 630-Beige, Maple Wood Diffuser 1000 1000 86119
73889 65836 product 0 86122 A 6 D 0 0 carver-sconce-12in-100-black-walnut-wood.jpg 12" Carver LED Wooden Diffuser Light, 100-Black, Walnut Wood Diffuser 1000 1000 86122
73890 65836 product 0 86123 A 7 D 0 0 carver-sconce-12in-320-fern-green-ash-wood.jpg 12" Carver LED Wooden Diffuser Light, 320-Fern Green, Ash Wood Diffuser 1000 1000 86123
73895 65836 product 0 86128 A 8 D 0 0 carver-sconce-16in-999-oil-rubbed-copper-walnut-wood.jpg 16" Carver LED Wooden Diffuser Light, 999-Natural Oil-Rubbed Copper, Walnut Wood Diffuser 1000 1000 86128
73897 65836 product 0 86130 A 9 D 0 0 carver-sconce-20in-805-charcoal-granite-ash-wood.jpg 20" Carver LED Wooden Diffuser Light, 805-Charcoal Granite, Ash Wood Diffuser 1000 1000 86130
73891 65836 product 0 86124 A 10 D 0 0 carver-sconce-12in-607-taupe-oak-wood.jpg 12" Carver LED Wood Diffuser Light, 607-Taupe, Oak Wood Diffuser 1000 1000 86124
73893 65836 product 0 86126 A 11 D 0 0 carver-sconce-16in-605-textured-rust-walnut-wood.jpg 16" Carver LED Wooden Diffuser Light, 605-Textured Rust, Walnut Wood Diffuser 1000 1000 86126
73921 65836 product 0 86154 A 12 D 0 0 FSC-stustainable-hardwoods.jpg 960 960 86154
73900 65836 product 0 86133 A 13 C 0 0 1089897426-commerical-residential-living-room-lounge-carver-wall-sconce-20in-430-soft-clay-walnut-wood-sqaure.jpg 20" Carver LED Wooden Diffuser Light, 430-Soft Clay, Walnut Wood Diffuser 1000 1000 86133
73898 65836 product 0 86131 A 14 C 0 0 605695818-carver-sconce-20in-16in-12in-200-white-100-black-oak-wood-residential-interior-mudroom-entryway-square.jpg 12", 16" and 20" Carver LED Wooden Diffuser Light, 200-White and 100-Black, Oak Wood Diffusers 1000 1000 86131
73899 65836 product 0 86132 A 15 C 0 0 629541061-residential-interior-living-room-carver-sconce-20in-16in-12in-996-weathered-copper-oak-wood-square.jpg 12", 16" and 20" Carver LED Wooden Diffuser Light, 996-Natural Weathered Copper, Oak Wood Diffusers 1000 1000 86132
73901 65836 product 0 86134 A 16 C 0 0 H17rssr4-commercial-interior-restaurant-carver-wall-sconce-20in-12in-800-industrial-grey-maple-wood-square.jpg 12" and 20" Carver LED Wooden Diffuser Light, 800-Industrial Grey, Maple Wood Diffuser 1000 1000 86134
73923 65836 product 0 86156 A 16 D 0 0 4M5A1948-carver-sconce-16in-weathered-copper-ash-wood.jpg 16" Carver, 996-Natural Weathered Copper, Ash Wood Diffuser 1000 1000 86156
73924 65836 product 0 86157 A 16 D 0 0 Carver-sconce-16in-997-raw-brass-ash-wood-on.jpg 16" Carver, 997-Natural Raw Brass, Ash Wood Diffuser 1000 1000 86157
73925 65836 product 0 86158 A 16 D 0 0 Carver-cluster.jpg 1000 1000 86158