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 (60798, 65548, 65964, 65800) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00138

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": 50,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (60798,65548,65964,65800)"
        }
      }
    },
    "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
64168 60798 product 0 76401 A 0 D 0 0 aero-studio-cable-16in-705-navy-CRD.jpg 16" Aero Studio Light, 705-Navy, CSR-Red Cloth Cord 1000 1000 76401
69110 65548 product 0 81343 A 0 D 0 0 alto-cord-9in-390-chartreuse-walnut-CMG.jpg 9" Alto, 390-Chartreuse, Walnut Wood, CMG-Grey Cloth Cord 1000 1000 81343
69143 65800 product 0 81376 A 0 D 0 0 Avalon-42in-studio-cable-100-black-CSBG.jpg 42" Avalon LED, 100-Black, CSBG-Black & Gold Cloth Cord 1000 1000 81376
69144 65800 product 0 81377 A 0 D 0 0 Avalon-42in-Studio-Cable-200-white-full-build.jpg 42" Avalon LED, 200-White, SWH-Standard White Cord 1000 1000 81377
69145 65800 product 0 81378 A 0 D 0 0 Avalon-42in-Studio-Cable-307-emerald-CSBB.jpg 42" Avalon LED, 307-Emerald Green, CSBB-Black & Brown Cloth Cord 1000 1000 81378
69146 65800 product 0 81379 A 0 D 0 0 Avalon-42in-Studio-Cable-400-barn-red-CRZ.jpg 42" Avalon LED, 400-Barn Red, CRZ-Red Chevron Cord 1000 1000 81379
69147 65800 product 0 81380 A 0 D 0 0 Avalon-42in-Studio-Cable-975-galvanized-CSBW_6p1s-g8.jpg 42" Avalon LED, 975-Galvanized, CSBW-Black & White Cloth Cord 1000 1000 81380
69148 65800 product 0 81381 A 0 D 0 0 Avalon-42in-Studio-Cable-705-navy-blue-CSgW.jpg 42" Avalon LED, 705-Navy Blue, CSGW-Gold & White Cloth Cord 1000 1000 81381
69149 65800 product 0 81382 A 0 D 0 0 Avalon-42in-Studio-Cable-700-royal-blue-CSUW.jpg 42" Avalon LED, 700-Royal Blue, CSUW-Blue & White Cloth Cord 1000 1000 81382
69150 65800 product 0 81383 A 0 C 0 0 living-room-6469856-residential-interior-avalon-oversized-studio-pendant-light-42in-975-galvanized-alt.jpg 42" Avalon, 975-Galvanized, CSBB-Black & Brown Cloth Cord 1500 1636 81383
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
62390 65548 product 0 74623 A 1 D 0 0 Alto-100-Black-Ash-Wood-CSB_0z2a-f4.jpg 27" Alto Wooden Cylinder Pendant, Ash Wood, Cup in 100-Black, CSB-Black Cloth Cord 1000 1000 74623
64167 60798 product 0 76400 A 1 D 0 0 aero-studio-cable-full-build-16in-975-galvanized.jpg 16" Aero Studio Light, 975-Galvanized, SBK-Standard Black Cord 1000 1000 76400
64165 60798 product 0 76398 A 2 D 0 0 aero-studio-cable-14in-400-barn-red-CRD.jpg 14" Aero Studio Light, 400-Barn Red, CSR-Red Cloth Cord 1000 1000 76398
66033 65548 product 0 78266 A 2 D 0 0 alto-walnut-490-magenta-wood-canopy-CSBP.jpg 27" Alto Wooden Cylinder Pendant, Walnut Wood, Cup in 490-Magenta, CSBP-Black & Pink Cloth Cord 1000 1000 78266
64163 60798 product 0 76396 A 3 D 0 0 aero-studio-cable-12in-997-raw-brass-CSGW.jpg 12" Aero Studio Light, 997-Natural Raw Brass, CSGW-Gold & White Cloth Cord 1000 1000 76396
69107 65548 product 0 81340 A 3 D 0 0 alto-cord-21in-480-blush-pink-ash-CSBP.jpg 21" Alto, 480-Blush Pink, Ash Wood, CSBP-Black & Pink Cloth Cord 1000 1000 81340
62146 65548 product 0 74379 A 4 D 0 0 Alto-311-Jadite-Walnut-Wood-CSW_44gp-2m.jpg 27" Alto Wooden Cylinder Pendant, Walnut Wood, Cup in 311-Jadite, CSW-White Cloth Cord 1000 1000 74379
64164 60798 product 0 76397 A 4 D 0 0 aero-studio-cable-14in-307-emerald-WC-SBK.jpg 14" Aero Studio Light, 307-Emerald Green, Wire Cage, 975-Galvanized, SBK-Standard Black Cord 1000 1000 76397
17905 60798 product 0 29534 A 5 D 0 0 aero-studio-cable-12in-200-white-SWH.jpg 12" Aero Studio Light, 200-White, SWH-Standard White Cord 1000 1000 29534
66032 65548 product 0 78265 A 5 D 0 0 alto-ash-500-buttery-yellow-SWH.jpg 27" Alto Wooden Cylinder Pendant, Ash Wood, Cup in 500-Buttery Yellow, SWH-Standard White Cord 1000 1000 78265
12966 60798 product 0 22882 A 6 D 0 0 aero-studio-cable-12in-100-black-CSBG.jpg 12" Aero Studio Light, 100-Black, CSBG-Black & Gold Cloth Cord 1000 1000 22882
62371 65548 product 0 74604 A 6 D 0 0 Alto-200-white-Walnut-wood-CSW.jpg 27" Alto Wooden Cylinder Pendant, Walnut Wood, Cup in 200-White, CSW-White Cloth Cord 1000 1000 74604
62373 65548 product 0 74606 A 7 D 0 0 Alto-400-Barn-Red-Ash-Wood-CSW.jpg 27" Alto Wooden Cylinder Pendant, Ash Wood, Cup in 400-Barn Red, CSW-White Cloth Cord 1000 1000 74606
64166 60798 product 0 76399 A 7 D 0 0 aero-studio-cable-16in-390-teal-CSBP.jpg 16" Aero Studio Light, 390-Teal, CSBP-Black & Pink Cloth Cord 1000 1000 76399
61867 60798 product 0 74100 A 8 C 0 0 Aero_Studio_Light_-_Porcelain_White_Barn_Light_Electric_-_Kitchen_Lighting.jpg 16” Aero Studio Light, 250-White, SBK-Standard Black Cord, 48in Cable | Photo Courtesy of Homeowner 1500 1357 74100
69109 65548 product 0 81342 A 8 D 0 0 alto-cord-15in-615-oil-rubbed-bronze-walnut-CSBB.jpg 15" Alto, 615-Oil-Rubbed Bronze, Walnut Wood, CSBB-Black & Brown Cloth Cord 1000 1000 81342
62375 65548 product 0 74608 A 9 D 0 0 Alto-700-Royal-Blue-Ash-Wood-CSB.jpg 27" Alto Wooden Cylinder Pendant, Ash Wood, Cup in 700-Royal Blue, CSB-Black Cloth Cord 1000 1000 74608
62372 65548 product 0 74605 A 10 D 0 0 Alto-300-Dark-Green-Walnut-Wood-CSB.jpg 27" Alto Wooden Cylinder Pendant, Walnut Wood, Cup in 300-Dark Green, CSB-Black Cloth Cord 1000 1000 74605
69108 65548 product 0 81341 A 11 D 0 0 alto-cord-21in-311-jadite-ash-CSW.jpg 21" Alto, 311-Jadite, Ash Wood, CSW-White Cloth Cord 1000 1000 81341
62374 65548 product 0 74607 A 12 D 0 0 Alto-615-Oil-Rubbed-Bronze-Walnut-Wood-CSB.jpg 27" Alto Wooden Cylinder Pendant, Walnut Wood, Cup in 615-Oil-Rubbed Bronze, CSB-Black Cloth Cord 1000 1000 74607
62376 65548 product 0 74609 A 13 D 0 0 Alto-715-Delphite-Ash-Wood-CSW.jpg 27" Alto Wooden Cylinder Pendant, Ash Wood, Cup in 715-Delphite, CSW-White Cloth Cord 1000 1000 74609
68765 65548 product 0 80998 A 14 C 0 0 Small-BarnLight-©MikeKelley-14.jpg Alto Wooden Cylinder Pendant, 370-Mint, Ash Wood, Standard Black Cord, Black Canopy, No Cover | Photography Courtesy of Mike Kelley 2000 1546 80998
68766 65548 product 0 80999 A 15 C 0 0 Small-BarnLight-©MikeKelley-20.jpg Alto Wooden Cylinder Pendant, 370-Mint, Ash Wood, Standard Black Cord, Black Canopy, No Cover | Photography Courtesy of Mike Kelley 1923 2000 80999
68767 65548 product 0 81000 A 16 C 0 0 Small-BarnLight-©MikeKelley-23.jpg Alto Wooden Cylinder Pendant, 370-Mint, Ash Wood, Standard Black Cord, Black Canopy, No Cover | Photography Courtesy of Mike Kelley 1758 2000 81000
62343 65548 product 0 74576 A 17 C 0 0 Commercial-Interior-Cafe-California-ALTO-400-barn-red-sbk-black-cord.jpg Alto Wooden Cylinder Pendant, Ash Wood, Cup in 400-Barn Red, SBK-Standard Black Cord 1500 2250 74576
62342 65548 product 0 74575 A 18 C 0 0 Commercial-Interior-Hotel-Lobby-Reception-ALTO-100-black-walnut-wood-cord-sbk-standard-canopy-alt.jpg Alto Wooden Cylinder Pendant, Walnut Wood, Cup in 100-Black, SBK-Standard Black Cord 1500 1000 74575