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 (64857, 64685, 64690, 61401) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00102

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": 55,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (64857,64685,64690,61401)"
        }
      }
    },
    "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
33697 64685 product 0 45930 A 0 D 0 0 original-stem-18in-galvanized-975.jpg 18" The Original™ Stem Mount, 975-Galvanized, Hang Straight Canopy 1000 1000 45930
46519 64857 product 0 58752 A 0 D 0 0 Loma-28-Inch-Stem-Galvanized-Teal.jpg 28" Loma, Exterior in 975-Galvanized, Interior in 390-Teal, Mounting in 390-Teal 1000 1000 58752
61419 64690 product 0 73652 A 0 D 0 0 _orignal-cord-24in-navy-705-gold-white-CSGW.jpg 24” The Original™, 705 Navy, CSGW-Gold & White Cloth Cord 1000 1000 73652
68653 61401 product 0 80886 A 0 D 0 0 led-original-stem-28in-311-jadite.jpg 28" The Original™ LED, 311-Jadite 1000 1000 80886
35337 64685 product 0 47570 A 1 D 0 0 original-stem-14in-raw-copper-995.jpg 14" The Original™ Stem Mount, 995-Natural Raw Copper 1000 1000 47570
46520 64857 product 0 58753 A 1 D 0 0 Loma-28-Inch-Stem-Blush-Pink-Painted-Brass.jpg 28" Loma, Exterior in 480-Blush Pink, Interior in 930-Painted Aged Brass, Mounting in 480-Blush Pink 1000 1000 58753
61420 64690 product 0 73653 A 1 D 0 0 The_Original™_Warehouse_Pendant_Light_-_28in_-_Barn_Light_Electric_-_Mint.jpg 28” The Original™, 370-Mint, CSW-White Cotton Cord 1000 1000 73653
68652 61401 product 0 80885 A 1 D 0 0 led-original-stem-24in-400-barn-red.jpg 24" The Original™ LED, 400-Barn Red 1000 1000 80885
46521 64857 product 0 58754 A 2 D 0 0 Loma-36-Inch-Stem-Royal-Blue.jpg 36" Loma, Exterior in 700-Royal Blue, Interior in 975-Galvanized, Mounting in 700-Royal Blue 1000 1000 58754
61421 64690 product 0 73654 A 2 D 0 0 The_Original™_Warehouse_Pendant_Light_-_28in_-_Barn_Light_Electric_-_Royal_Blue.jpg 28” The Original™, 700-Royal Blue, CSUW-Blue & White Cotton Cord 1000 1000 73654
68654 61401 product 0 80887 A 2 D 0 0 led-original-stem-28in-495-sherbert-orange.jpg 28" The Original™ LED, 495-Sherbet Orange, Mounting in 200-White 1000 1000 80887
33696 64685 product 0 45929 A 3 D 0 0 original-stem-16in-200-white-mint-370-acrylic-diffuser.jpg 16" The Original™ Stem Mount, 200-White, ACR-Acrylic Diffuser, 370-Mint 1000 1000 45929
46522 64857 product 0 58755 A 3 D 0 0 Loma-28-Inch-Stem-White.jpg 28" Loma, 200-White 1000 1000 58755
54142 64690 product 0 66375 A 3 C 0 0 Urban-Putt-original-warehouse-pendant-24in-105-textured-black-sbk-standard-black-cord-commercial-interior-restaurant-bar-brick.jpg 24" The Original™, 105-Textured Black, SBK-Standard Black Cord | Courtesy of Urban Putt, Visual Interest, and Roth Sheppard Architects 1500 2250 66375
68651 61401 product 0 80884 A 3 D 0 0 led-original-stem-24in-307-emerald-green.jpg 24" The Original™ LED, 307-Emerald Green 1000 1000 80884
34203 64685 product 0 46436 A 4 D 0 0 original-stem-28in-Royal-Blue.jpg 28" The Original™ Stem Mount, 700-Royal Blue 1000 1000 46436
46523 64857 product 0 58756 A 4 D 0 0 Loma-28-Inch-Stem-Mint.jpg 28" Loma, Exterior in 370-Mint, Interior in 200-White, Mounting in 975-Galvanized 1000 1000 58756
61664 64690 product 0 73897 A 4 C 0 0 The_Original™_Warehouse_Pendant_Light_-_Barn_Light_Electric_.jpg 28” The Original™, 311-Jadite, CSB-Black Cloth Cord | Courtesy of Brooke Green 1500 919 73897
47271 64857 product 0 59504 A 5 D 0 0 Loma-36-inch-Galvanized-White-3-Socket.jpg 36" Loma, 975-Galvanized, Shown with Triple Socket 5760 3840 59504
60274 64690 product 0 72507 A 5 C 0 0 The_Original™_Warehouse_Cord_Pendant_Light_-_Barn_Light_Electric_-_Office_Lighting.jpeg 28” The Original™, 420-Orange, SWH-Standard White Cord | Courtesy of Jennifer Hoey Interior Design and Ray J. Gadd Photography 513 768 72507
35340 64690 product 0 47573 A 6 C 0 0 CR11367951584518948e075347.jpg 24" The Original™, 100-Black 1500 844 47573
46524 64857 product 0 58757 A 6 D 0 0 Loma-36-Inch-Stem-Barn-Red-Sunflower.jpg 26" Loma, Exterior in 400-Barn Red, Interior in 570-Sunflower, Mounting in 400-Barn Red 1000 1000 58757
61561 64685 product 0 73794 A 6 D 0 0 original-stem-QUICK-SHIP-100-black-wire-cage_xj8t-dk.jpg 16" The Original™ Stem Mount, 100-Black, Wire Cage 1000 1000 73794
33695 64685 product 0 45928 A 7 D 0 0 original-stem-12in-raw-brass-995-galvanized-975-CGG.jpg 12" The Original™ Stem Mount, 997-Natural Raw Brass, CGG-Standard Cast Guard, 975-Galvanized, RIB-Ribbed Glass, Mounting in 975-Galvanized 1000 1000 45928
35341 64690 product 0 47574 A 7 C 0 0 24_inch_buttery_yellow_warehouse_pendant.jpg 24" The Original™, 500-Buttery Yellow | Courtesy of Karen Kimmel 636 822 47574
46525 64857 product 0 58758 A 7 D 0 0 Loma-28-Inch-Stem-Delphite.jpg 28" Loma, Exterior in 715-Delphite Blue, Interior in 200-White 1000 1000 58758
33700 64685 product 0 45933 A 8 D 0 0 original-stem-24in-705-navy-brushed-aluminum.jpg 24" The Original™ Stem Mount, 705-Navy, Mounting in 980-Brushed Aluminum 1000 1000 45933
46526 64857 product 0 58759 A 8 D 0 0 Loma-36-Inch-Stem-Galvanized.jpg 36" Loma, 975-Galvanized 1000 1000 58759
60275 64690 product 0 72508 A 8 C 0 0 The_Original™_Warehouse_Pendant_Light_28____36__-_Barn_Light_Electric_-_Office_Lighting.jpeg 28” The Original™, 420-Orange, SWH-Standard White Cord | Courtesy of Jennifer Hoey Interior Design and Ray J. Gadd Photography 513 768 72508
33701 64685 product 0 45934 A 9 D 0 0 original-stem-20in-buttery-yellow-500.jpg 20" The Original™ Stem Mount, 500-Buttery Yellow 1000 1000 45934
54083 64690 product 0 66316 A 9 C 0 0 original_warehouse_pendant_buttery_yellow-501x768.jpg 24" The Original™, 500-Buttery Yellow | Courtesy of Karen Kimmel 501 768 66316
69186 64857 product 0 81419 A 9 C 0 0 Bonsai_Mirai-6-commercial-exterior-lighting-garden-Loma-Stem-Mount-28in-106-Matte-Black-200-White-36in-Stem.jpg 28" Loma, Exterior in 106-Matte Black with 200-White Interior, 36" Stem | Photo Courtesy of Bonsai Mirai 1080 1080 81419
46516 64857 product 0 58749 A 10 C 0 0 chairs-2181980-2b-commercial-office-loma-stem-36-navy.jpg 36" Loma, Exterior and Mounting in 705-Navy 1242 829 58749
60276 64690 product 0 72509 A 10 C 0 0 The_Original™_Warehouse_Pendant_Light_-_Barn_Light_Electric_-_Office_Lighting.jpg 28” The Original™, 420-Orange, SWH-Standard White Cord | Courtesy of Jennifer Hoey Interior Design and Ray J. Gadd Photography 749 768 72509
61560 64685 product 0 73793 A 10 D 0 0 original-stem-QUICK-SHIP-16in-300-Dark-green.jpg 16" The Original™ Stem Mount, 300-Dark Green 1000 1000 73793
33718 64685 product 0 45951 A 12 D 0 0 original-stem-28in-emerald-green-raw-brass.jpg 28" The Original™ Stem Mount, 307-Emerald Green, Mounting in 997-Natural Raw Brass, Decorative Canopy & Hex Cover 1000 1000 45951
33709 64685 product 0 45942 A 13 D 0 0 original-stem-16in-undustrial-grey-barn-red-wire-cage.jpg 16" The Original™ Stem Mount, 800-Industrial Grey, Wire Cage, 400-Barn Red, Mounting in 400-Barn Red 1000 1000 45942
61555 64685 product 0 73788 A 14 D 0 0 original-stem-24in-black.jpg The Original™ Stem Mount, 100-Black, Heavy Duty Canopy 1000 1000 73788
33711 64685 product 0 45944 A 15 D 0 0 original-stem-14in-navy-705-weathered-brass.jpg 14" The Original™ Stem Mount, 705-Navy, Mounting in 998-Natural Weathered Brass 1000 1000 45944
65136 64685 product 0 77369 A 16 C 0 0 SBP84246-commercial-exterior-lighting-retail-store-Original-Stem-Mount-Pendant-16in-715-PTM-Delphite-Blue-24in-stem-Wire-Guard-975-Galvanized-Clear-Glass-Hang-Straight-Canopy.jpg 16" The Original™, 715-Delphite Blue, 24" Stem, Wire Guard, 975-Galvanized, Clear Glass, Hang Straight Canopy | Photo Courtesy of Something Blue Photography 1800 1200 77369
54160 64685 product 0 66393 A 17 C 0 0 original_stem_mount_100_black_18in3.jpg 18” The Original™, 100-Black Finish | Photo Courtesy of Tami Hutter from Infinity Farms 1500 1000 66393
66014 64685 product 0 78247 A 18 C 0 0 barn_light_original_pendant.jpg 14" The Original™, 975-Galvanized, 18" Stem | Photo Courtesy of Our Feathered Farmhouse and Christy Stalnaker Photography 684 1024 78247
36569 64685 product 0 48802 A 19 C 0 0 original_stem_pendant_14in_975_galvanized_6instem_redcage.jpg (3) 14” The Original™, 975-Galvanized Finish, 6” Stem | 1/2” Diameter in 975-Galvanized finish, 14” Wire Cage in 400-Barn Red finish | Photo Courtesy of Halcyon Trade Building and Paul Body 1500 1604 48802
59482 64685 product 0 71715 A 20 C 0 0 The_Original™_Warehouse_Stem_Mount_Pendant_-_105_Textured_Black_Barn_Light_Electric_-_Commercial_Space_Interior_Lighting.jpg 12” The Original™, 105-Textured Black, 18” Stem (Also pictured: The Original™ Warehouse Gooseneck Light) | Photo Courtesy of Camp Kiniya and Ryan Bent Photography 1500 1000 71715
54161 64685 product 0 66394 A 21 C 0 0 original_stem_mount_100_black_18in2.jpg 18” The Original™, 100-Black Finish | Photo Courtesy of Tami Hutter from Infinity Farms 1500 1000 66394
33704 64685 product 0 45937 A 22 C 0 0 barn_pendant_light_exterior-1-567x768.jpg 12" The Original™, 100-Black, 12" Stem | Customer Submission 567 768 45937
54162 64685 product 0 66395 A 23 C 0 0 outdoor_lighting_pendant_lights-768x512.jpeg 18” The Original™, 100-Black Finish | Photo Courtesy of Tami Hutter from Infinity Farms 768 512 66395
60116 64685 product 0 72349 A 24 C 0 0 The_Original™_Warehouse_Stem_Mount_Pendant_-_Barn_Light_Electric_-_Front_Porch_Decor.JPG 16" The Original™, 100-Black, 12” Stem, Standard Canopy | Photo Courtesy of Veronica Wurtzel 795 1060 72349
33703 64685 product 0 45936 A 25 C 0 0 copper_pendant_lighting-768x576.jpg (3) 16" The Original™, 995-Natural Raw Copper, 6" Stems, 100-Black | Photo Courtesy of Iron & Wood 768 576 45936
33702 64685 product 0 45935 A 26 C 0 0 copper_lighting_american_made-576x768.jpg (3) 16" The Original™, 995-Natural Raw Copper, 24" Stem | Photo Courtesy of Luke Dubbeldam of Iron & Wood 576 768 45935
33706 64685 product 0 45939 A 27 C 0 0 Residential_Original_Stem_Mount_Pendant_100_Black_12_in_Shade.jpg 14" The Original™, 100-Black, 18" Stem | Photo Courtesy of Jill Absten Cox Design 1500 1125 45939
33707 64685 product 0 45940 A 28 C 0 0 original_stem_pendant_12in_white_18instem_galvmount3.jpg 12" The Original™, 200-White, 18" Stem, 975-Galvanized | Customer Submission 800 990 45940
33699 64685 product 0 45932 A 29 C 0 0 original-stem-mount-975-galvanized.jpg (6) 16" The Original™, 975-Galvanized | Photo Courtesy of Pinetop Custom Homes 900 600 45932
65137 64685 product 0 77370 A 30 C 0 0 SBP84240-commercial-exterior-lighting-retail-store-Original-Stem-Mount-Pendant-16in-715-PTM-Delphite-Blue-24in-stem-Wire-Guard-975-Galvanized-Clear-Glass-Hang-Straight-Canopy.jpg 16" The Original™, 715-Delphite Blue, 24" Stem, Wire Guard, 975-Galvanized, Clear Glass, Hang Straight Canopy | Photo Courtesy of Something Blue Photography 1200 1800 77370
68217 64685 product 0 80450 A 31 D 0 0 59_South_Street_60_photo-by-Peter_Murdock-residential-interior-lighting-garage-Original-Warehouse-Stem-Mount-28in-100-Black-48in-stem-Wire-Guard.jpg 28" The Original™, 100-Black, 48" Stem, Wire Guard | Photo Courtesy of Peter Murdock 2880 1845 80450