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 (65693, 65692, 65873, 65882, 65965) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00071

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": 38,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (65693,65692,65873,65882,65965)"
        }
      }
    },
    "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
67052 65693 product 0 79285 A 0 D 0 0 Aero-basic-cord-12in-300-drk-green-SWH.jpg 12" Aero, 300-Dark Green, SWH-Standard White Cord 1000 1000 79285
67061 65692 product 0 79294 A 0 D 0 0 Aero-basic-stem-12in-100-black-long-stem-HSC.jpg 12" Aero, 100-Black, Hang Straight Canopy, 18" Stem, Hang Straight Canopy 1000 1000 79294
67062 65692 product 0 79295 A 0 D 0 0 Aero-basic-stem-12in-300-dark-green-short-stem.jpg 12" Aero, 300-Dark Green, 12" Stem, Hang Straight Canopy 1000 1000 79295
67063 65692 product 0 79296 A 0 D 0 0 Aero-basic-stem-16in-605-rust-long-stem.jpg 16" Aero, 605-Rust, 18" Stem 1000 1000 79296
70288 65873 product 0 82521 A 0 D 0 0 Duo-Loma-stem-pendant-8in-200-white-ash-wood-ring-Green-Creative-G40-double-layer-bulbs.jpg 10" Duo, 200-White, Walnut Wood Ring, Shown with LED Double Layer G40 250 Lumen Bulb 1000 1000 82521
72027 65882 product 0 84260 A 0 D 0 0 Duo-Loma-sconce-8in-995-raw-copper-630-Beige.jpg Duo Wall Sconce, Top in 995-Natural Raw Copper, Bottom in 630-Beige, Bottom Interior in 995-Natural Raw Copper, Mounting in 630-Beige 1000 1000 84260
74232 65965 product 0 86465 A 0 D 0 0 isos-studio-pendant-32in-100-black-standard-black-cord-maple-wood_mgjr-av.jpg 32" Isos Cone Studio Pendant Light, 100-Black, Optional Wood Top, Maple Wood, Standard Black Cord 1000 1000 86465
67055 65693 product 0 79288 A 1 D 0 0 Aero-basic-cord-full-build-16in-200-white-SWH.jpg 16" Aero, 200-White, SWH-Standard White Cord 1000 1000 79288
71996 65882 product 0 84229 A 1 D 0 0 Duo-Loma-sconce-8in-100-Black-200-white-maple-wood-ring.jpg Duo Wall Sconce, Top in 100-Black, Bottom in 200-White, Maple Wood Ring, Mounting in 100-Black 1000 1000 84229
72025 65873 product 0 84258 A 1 D 0 0 Duo-Loma-stem-pendant-14in-995-raw-copper-630-Beige.jpg 14" Duo, Top in 995-Natural Raw Copper, Bottom in 630-Beige, Bottom Interior in 995-Natural Raw Copper, Mounting in 630-Beige 1000 1000 84258
74236 65965 product 0 86469 A 1 D 0 0 isos-studio-pendant-24in-320-fern-green-fern-green-cloth-cord_hzbi-65_i4qg-dm.jpg 24" Isos Cone Studio Pendant Light, 320-Fern Green, Fern Green Chevron Cloth Cord 1000 1000 86469
67054 65693 product 0 79287 A 2 D 0 0 Aero-basic-cord-16in-605-rust-SBK.jpg 16" Aero, 605-Rust, SBK-Standard Black Cord 1000 1000 79287
71995 65882 product 0 84228 A 2 D 0 0 Duo-Loma-ssconce-8in-320-fern-green-997-raw-brass.jpg Duo Wall Sconce, 320-Fern Green, Bottom Interior in 997-Natural Raw Brass, Mounting in 320-Fern Green 1000 1000 84228
72000 65873 product 0 84233 A 2 D 0 0 Duo-Loma-stem-pendant-8in-630-beige-705-navy.jpg 10" Duo, Top in 630-Beige, Bottom in 705-Navy, Bottom Interior in 630-Beige, Mounting in 630-Beige 1000 1000 84233
74229 65965 product 0 86462 A 2 D 0 0 isos-studio-pendant-12in-206-matte-white-standard-white-cord-ash-wood_rjkh-6g_27ec-mj.jpg 12" Isos Cone Studio Pendant Light, 206-Matte White, Optional Wood Top, Ash Wood, Standard White Cord 1000 1000 86462
67051 65693 product 0 79284 A 3 D 0 0 Aero-basic-cord-12in-100-black-SWH.jpg 12" Aero, 100-Black, SBK-Standard Black Cord 1000 1000 79284
71997 65882 product 0 84230 A 3 D 0 0 Duo-Loma-sconce-8in-997-raw-brass-300-dark-green-Tala-bulb-porcelain-III.jpg Duo Wall Sconce, Top in 997-Natural Raw Brass, Bottom in 300-Dark Green, Mounting in 300-Dark Green, Shown with Porcelain III Tala Lamp 1000 1000 84230
72003 65873 product 0 84236 A 3 D 0 0 Duo-Loma-stem-pendant-14in-975-galvanized-Tala-bulb-voroni-I.jpg 14" Duo, 975-Galvanized, Ash Wood Ring, Shown with Voronoi I Tala Lamp 1000 1000 84236
74230 65965 product 0 86463 A 3 D 0 0 isos-studio-pendant-32in-605-textured-rust-rust-cloth-cord_oeus-7r_un88-qv.jpg 32" Isos Cone Studio Pendant Light, 605-Textured Rust, Rust Cloth Cord 1000 1000 86463
67053 65693 product 0 79286 A 4 D 0 0 Aero-basic-cord-16in-300-dark-green-SBK.jpg 16" Aero, 300-Dark Green, SBK-Standard Black Cord 1000 1000 79286
67261 65693 product 0 79494 A 4 C 0 0 1-Aero-cord-Pendant-Light-16in-100-Black-SBK-standard-black-cord-stables-residential-interior.jpeg 16" Aero, 100-Black, SBK-Standard Black Cord 1500 2000 79494
70290 65873 product 0 82523 A 4 D 0 0 Duo-Loma-stem-pendant-8in-997-raw-brass-300-dark-green-Tala-oval-bulb.jpg 10" Duo, Top in 997-Natural Raw Brass, Bottom in 300-Dark Green, Bottom Interior in 997-Natural Raw Brass, Mounting in 300-Dark Green, Shown with Oval LED Tala Lamp 1000 1000 82523
71998 65882 product 0 84231 A 4 D 0 0 Duo-Loma-sconce-8in-630-beige-705-navy.jpg Duo Wall Sconce, Top in 630-Beige, Bottom in 705-Navy, Bottom Interior in 630-Beige, Mounting in 630-Beige 1000 1000 84231
74231 65965 product 0 86464 A 4 D 0 0 isos-studio-pendant-24in-390-teal-standard-black-cord-walnut_t0zw-jh_amvh-xy.jpg 24" Isos Cone Studio Pendant Light, 390-Teal, Optional Wood Top, Walnut Wood, Standard Black Cord 1000 1000 86464
72002 65873 product 0 84235 A 5 D 0 0 Duo-Loma-stem-pendant-14in-320-fern-green-997-raw-brass.jpg 14" Duo, 320-Fern Green, Bottom Interior in 997-Natural Raw Brass, Mounting in 997-Natural Raw Brass 1000 1000 84235
72178 65882 product 0 84411 A 5 C 0 0 Duo-Loma-residential-bathroom-sink-sconce-10in-607-Taupe-oak-wood-ring.jpg 10" Duo, 607-Taupe, Oak Wood Ring, Shown with Porcelain II Tala Lamp 1500 2249 84411
74233 65965 product 0 86466 A 5 D 0 0 isos-studio-pendant-32in-300-dark-green-emerald-green-cloth-cord_aw5w-2p_gnh3-jf.jpg 32" Isos Cone Studio Pendant Light, 300-Dark Green, Emerald Green Cloth Cord 1000 1000 86466
72001 65873 product 0 84234 A 6 D 0 0 Duo-Loma-stem-pendant-8in-815-light-grey-607-taupe-walnut-wood-ring.jpg 10" Duo, Top in 815-Light Grey, Bottom in 607-Taupe, Walnut Wood Ring, Mounting in 607-Taupe 1000 1000 84234
74235 65965 product 0 86468 A 6 D 0 0 isos-studio-pendant-12in-975-galvanized-standard-black-cord_yr4u-u7_itn3-bj.jpg 12" Isos Cone Studio Pendant Light, 975-Galvanized, Standard Black Cord 1000 1000 86468
72177 65873 product 0 84410 A 7 C 0 0 Duo-Loma-14in-stem-pendant-residential-kitchen-100-black-ash-wood-ring-noma-tala-lamp.jpg 14" Duo, 100-Black, Ash Wood Ring, Shown with the Noma LED Tala Lamp 2000 1333 84410
74234 65965 product 0 86467 A 7 D 0 0 isos-studio-pendant-24in-615-oil-rubbed-bronze-rust-cloth-cord-maple-wood_hyco-so_kdon-tx.jpg 24" Isos Cone Studio Pendant Light, 615-Oil-Rubbed Bronze, Optional Wood Top, Maple Wood, Rust Cloth Cord 1000 1000 86467
72179 65873 product 0 84412 A 8 C 0 0 Duo-Loma-ymVuAO_oJMs-14in-430-Soft-Clay-200-White-Porcelain-II-Tala-Bulb.jpg 14" Duo, Top in 430-Soft Clay, Bottom in 200-White, Mounting in 200-White, Shown with Porcelain III Tala Lamp 2000 1333 84412
74237 65965 product 0 86470 A 8 D 0 0 adjustable_y0cs-zk.jpg 1000 1000 86470
74238 65965 product 0 86471 A 9 D 0 0 FSC-stustainable-hardwoods_th56-dt_tbh1-7w.jpg 1000 1000 86471
74239 65965 product 0 86472 A 10 C 0 0 5izEn-YcRbI-commercial-interior-restaurant-isos-studio-pendant-100-black-32in-12in-crop_lu27-nv.jpg 12" and 32" Isos, 100-Black, Standard Black Cord 1000 1000 86472
74240 65965 product 0 86473 A 11 C 0 0 2181919-commercial-interior-classroom-isos-studio-pendant-24in-705-navy-standard-white-cord-crop_i4qt-k7.jpg 24" Isos, 705-Navy, Standard White Cord 1000 1000 86473
74241 65965 product 0 86474 A 12 C 0 0 904099468-residential-interior-dining-room-table-isos-32in-100-black-maple-wood-studio-pendant-standard-black-cord-crop_y9tj-ek_2zze-1d.jpg 32" Isos, 100-Black, Optional Wood Top, Maple Wood, Standard Black Cord 1000 1000 86474
74242 65965 product 0 86475 A 13 C 0 0 1007074880-residential-interior-bedroom-isos-studio-pendant-12in-crop_xh6p-94.jpg 12" Isos, 605-Textured Rust, Standard Black Cord 1000 1000 86475