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 (64657, 64728, 64821, 61180) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00116

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": 61,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (64657,64728,64821,61180)"
        }
      }
    },
    "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
31253 61180 product 0 43486 A 0 D 0 0 Fargo-sconce-705-navy-blue.jpg Fargo Wall Sconce, 705-Navy 1000 1000 43486
37286 64728 product 0 49519 A 0 D 0 0 wilcox-10in-975-galvanized-bantam-sconce.jpg 10" Bantam Wilcox, 975-Galvanized 1000 1000 49519
57250 64657 product 0 69483 A 0 D 0 0 Egg-cord-pendant-16in-800-industrial-grey-100-black-CSB-black-cloth-cord-.jpg 16" Egg, Exterior in 800-Industrial Grey, Interior in 100-Black, CSB-Black Cloth Cord 1000 1000 69483
63967 64821 product 0 76200 A 0 D 0 0 Loma-Cord-16in-480-blush-pink-490-magenta-CSW.jpg 16" Loma, Exterior in 480-Blush Pink, Interior in 490-Magenta, CSW-White Cloth Cord 1000 1000 76200
14617 61180 product 0 25542 A 1 D 0 0 Fargo-sconce-311-jadite-975-galvanized.jpg Fargo Wall Sconce, 311-Jadite, Mounting in 975-Galvanized 1000 1000 25542
40757 64821 product 0 52990 A 1 D 0 0 loma-cord-medium-copper-hex-sbk.jpg 16" Loma, 995-Natural Raw Copper, SBK-Standard Black Cord 1000 1000 52990
56723 64657 product 0 68956 A 1 D 0 0 Egg-cord-pendant-20in-311-jadite-CSW-white-cloth-cord-.jpg 20" Egg, 311-Jadite PTMP, CSW-White Cloth Cord 1000 1000 68956
59061 64728 product 0 71294 A 1 D 0 0 wilcox-8in-400-barn-red-bantam-sconce.jpg 8" Bantam Wilcox, 400-Barn Red 1000 1000 71294
31255 61180 product 0 43488 A 2 D 0 0 Fargo-sconce-400-barn-red.jpg Fargo Wall Sconce, 400-Barn Red 1000 1000 43488
40753 64821 product 0 52986 A 2 D 0 0 Loma-Cord-20in-200-white-100-black-CSBW.jpg 20" Loma, 200-White, Interior in 100-Black, CSBW-Black & White Cloth Cord 1000 1000 52986
57249 64657 product 0 69482 A 2 D 0 0 Egg-cord-pendant-10in-400-barn-red-CSR-red-cloth.jpg 10" Egg, 400-Barn Red, CSR-Red Cloth Cord 1000 1000 69482
22782 61180 product 0 34686 A 3 C 0 0 fargo-walls-conce-705-navy.jpg (2) Fargo Wall Sconces, 705-Navy Shade and Mounting, Wire Cage in 705-Navy, No Switch 853 1280 34686
37285 64728 product 0 49518 A 3 C 0 0 Bantam_Wesco_Sconce.jpg 10" Bantam Wilcox Wall Sconce, 307-Emerald Green | Photo Courtesy of Janna @yellowprairieinteriors 1066 1600 49518
40758 64821 product 0 52991 A 3 D 0 0 Loma-Cord-12in-100-black-400-red-CRD.jpg 12" Loma, Exterior in 100-Black, Interior in 400-Barn Red, CRD-Red Cloth Cord 1000 1000 52991
56725 64657 product 0 68958 A 3 D 0 0 Egg-cord-pendant-16in-615-oil-rubbed-bronze-CSBB-black-brown-chevron.jpg 16" Egg, 615-Oil-Rubbed Bronze, CSBB-Black & Brown Chevron Cord 1000 1000 68958
37287 64728 product 0 49520 A 4 C 0 0 barn_wall_sconces-577x768.jpg 8" Bantam Wilcox Wall Sconce, 200-White | Photo Courtesy of Choux Designs 577 768 49520
40756 64821 product 0 52989 A 4 D 0 0 Loma-Cord-16in-975-galvanized-705-navy-cmg.jpg 16" Loma, Exterior in 975-Galvanized, Interior in 705-Navy, CMG-Grey Cloth Cord 1000 1000 52989
56727 64657 product 0 68960 A 4 D 0 0 Egg-cord-pendant-16in-715-delphite-CSW-white-cloth-cord-.jpg 16" Egg, Exterior in 715-Delphite Blue PTMP, Interior in 200-White, CSW-White Cloth Cord 1000 1000 68960
62762 61180 product 0 74995 A 4 C 0 0 Fargo_Wall_Sconce_380-Chartreuse_100-BlackArm_NoSwitch4.jpeg (2) Fargo Wall Sconce, 380-Chartreuse, Mounting in 100-Black, No Switch | Photo Courtesy of Laura Yeager Smith Home & Design 1500 2001 74995
54182 61180 product 0 66415 A 5 C 0 0 Cottage_Decorating___Farmhouse_Style.jpeg Fargo Wall Sconce, 975-Galvanized Shade and Mounting, Paddle Switch, With Cage | Photo Courtesy of The Lettered Cottage 600 900 66415
57247 64657 product 0 69480 A 5 D 0 0 Egg-cord-pendant-10in-100-black-CSBW-black-white-cloth.jpg 10" Egg, 100-Black, CSBW-Black & White Cloth Cord 1000 1000 69480
62189 64728 product 0 74422 A 5 C 0 0 Bantam_Wilcox_Deep_Bowl_Sconce_8inch_200_White.jpg 8" Bantam Wilcox Wall Sconce, 200-White | Photo Courtesy of Homeowner 1500 2000 74422
64866 64821 product 0 77099 A 5 D 0 0 loma-12in-930-aged-brass-exterior-615-oil-rubbed-bronze-interior-csb.jpg 12" Loma, Exterior in 930-Painted Aged Brass, Interior in 615-Oil-Rubbed Bronze, CSB-Black Cloth Cord 1000 1000 77099
37288 64728 product 0 49521 A 6 C 0 0 Bantam_Wesco_Sconce_Emerald_Green.jpg 10" Bantam Wilcox Wall Sconce, 307-Emerald Green | Photo Courtesy of Janna @yellowprairieinteriors 1066 1600 49521
57251 64657 product 0 69484 A 6 D 0 0 Egg-cord-pendant-20in-200-white-CSGW-gold-white-cloth.jpg 20" Egg, 200-White, CSGW-Gold & White Cloth Cord 1000 1000 69484
69120 61180 product 0 81353 A 6 C 0 0 IMG_7188-residential-interior-lighting-brick-artwork-Fargo-Wall-Sconce-995-Raw-Copper-106-Matte-Black-Turn-Key-Switch.JPG Fargo Wall Sconce, 995-Natural Raw Copper, Mounting in 106-Matte Black, Turn Key Switch | Photo Courtesy of Customer 1500 1798 81353
71051 64821 product 0 83284 A 6 D 0 0 Loma-Cord-12in-390-teal-CSGW.jpg 12" Loma, 390-Teal, CSGW-Gold & White Cloth Cord 1000 1000 83284
55758 61180 product 0 67991 A 7 C 0 0 fargo-wall-sconces.JPG (2) Fargo Wall Sconces, 975-Galvanized | Photo Courtesy of White Flower Farmhouse 734 721 67991
57281 64657 product 0 69514 A 7 D 0 0 Egg-cord-pendant-10in-975-galvanized-CMG-grey-cloth-cord.jpg 10" Egg, 975-Galvanized, CMG-Grey Cloth Cord 1000 1000 69514
63966 64821 product 0 76199 A 7 D 0 0 Loma-Cord-12in-700-royal-997-raw-brass-CSUW.jpg 12" Loma, Exterior in 700-Royal Blue, Interior in 997-Natural Raw Brass, CSUW-Blue & White Cloth Cord 1000 1000 76199
62864 61180 product 0 75097 A 8 C 0 0 4M5A1616-Commercial-Restaurant-Diner-Interior-Fargo-Wall-Sconce-106-Matte-Black-975-galvanized-on__1_.jpg Fargo Wall Sconce, 106-Matte Black, Mounting in 975-Galvanized 1500 2250 75097
63968 64821 product 0 76201 A 8 D 0 0 Loma-Cord-20in-500-buttery-yellow-100-black-CSBG.jpg 20" Loma, Exterior in 500-Buttery Yellow, Interior in 100-Black, CSBG-Black & Gold Cloth Cord 1000 1000 76201
55759 61180 product 0 67992 A 9 C 0 0 fargo-wall-sconce.JPG (2) Fargo Wall Sconces, 100-Black | Photo Courtesy of White Flower Farmhouse 730 841 67992
67704 64821 product 0 79937 A 9 C 0 0 IMG-1994-residential-interior-lighting-kitchen-island-Loma-Pendant-20in-106-Matte-Black-200-White-SBK-Wilcox-Gooseneck-10in-106-Matte-Black-G17arm.jpg 20" Loma Pendant, 106-Matte Black, 200-White, Standard Black Cord | 10" Wilcox Gooseneck 106-Matte Black, G17 Arm | Photo Courtesy of The Maine Spruce 4032 3024 79937
14638 61180 product 0 25563 A 10 C 0 0 fargo_sconce_turnkey_detail_square.jpg The Fargo Wall Sconce Paddle Switch 800 800 25563
67705 64821 product 0 79938 A 10 C 0 0 IMG-2034-residential-interior-lighting-kitchen-island-Loma-Pendant-20in-106-Matte-Black-200-White-SBK-Wilcox-Gooseneck-10in-106-Matte-Black-G17arm.jpg 20" Loma Pendant, 106-Matte Black, 200-White, Standard Black Cord | Photo Courtesy of The Maine Spruce 2688 3583 79938
51868 64821 product 0 64101 A 11 C 0 0 Barn_Light_Electric_Loma_Pendant_Light_100-Black_Exterior_and_940-Painted_Aged_Copper_Interior.jpg 20” Shade, 100-Black Exterior Finish, 940-Painted Aged Interior Finish, SBK-Standard Black Cord 1500 1500 64101
61340 61180 product 0 73573 A 11 C 0 0 Fargo_Wall_Sconce_-_995_Natural_Raw_Copper_Barn_Light_Electric_-_Bathroom_Lighting.jpg Fargo Wall Sconce, 995-Raw Copper Shade, 100-Black Mounting, No Switch | Photo Courtesy of Airy Kitchens (@airy_kitchens) and Kira Luxon Photography 1500 2247 73573
60889 64821 product 0 73122 A 12 C 0 0 Loma_Pendant_Light_-_100_Black_Barn_Light_Electric_-_Kitchen_Island_Lighting.jpg 12” Shade, 930-Painted Aged Brass Interior & 100-Black Exterior, SBK-Standard Black Cord (Also pictured: Canal Gooseneck Light) | Photo Courtesy of Ashley Brochu (@themainesprucehouse) 1500 2000 73122
62865 61180 product 0 75098 A 12 C 0 0 DSCF2507-Commercial-Restaurant-Diner-Interior-Fargo-Wall-Sconce-106-Matte-Black-975-galvanized-on.jpg Fargo Wall Sconce, 106-Matte Black, Mounting in 975-Galvanized 1500 2250 75098
44904 64821 product 0 57137 A 13 C 0 0 Loma_Pendant_-_200_White_Barn_Light_Electric.jpg 16” Shade, 200-White Exterior Finish, 997-Raw Brass Interior Finish, CSGW-Gold & White Cloth Cord 1500 2000 57137
61342 61180 product 0 73575 A 13 C 0 0 Fargo_Wall_Sconce_-_995_Natural_Raw_Copper_Barn_Light_Electric_-_Bathroom_Wall_Sconce.jpg Fargo Wall Sconce, 995-Raw Copper Shade, 100-Black Mounting, No Switch | Photo Courtesy of Airy Kitchens (@airy_kitchens) and Kira Luxon Photography 1500 2247 73575
60018 64821 product 0 72251 A 14 C 0 0 Loma_Pendant_Light_-_Barn_Light_Electric_-_Modern_Deep_Bowl_Lighting.JPG 16” Shade, 200-White Exterior Finish, 997-Raw Brass Interior Finish, CSGW-Gold & White Cloth Cord | Photo Courtesy of Lighting Environments 1242 1512 72251
61341 61180 product 0 73574 A 14 C 0 0 Fargo_Wall_Sconce_-_995_Natural_Raw_Copper_Barn_Light_Electric_-_Bathroom_Vanity_Lighting.jpg Fargo Wall Sconce, 995-Raw Copper Shade, 100-Black Mounting, No Switch | Photo Courtesy of Airy Kitchens (@airy_kitchens) and Kira Luxon Photography 1500 2247 73574
49848 61180 product 0 62081 A 15 C 0 0 White_Flower_Farmhouse___whiteflowerfarmhouse_.png Fargo Wall Sconce, 100-Black | Photo Courtesy of White Flower Farmhouse @whiteflowerfarmhouse 587 592 62081
60270 64821 product 0 72503 A 15 C 0 0 Loma_Pendant_Light_-_200_White_Barn_Light_Electric_-_Laundry_Room_Lighting.jpg 16” Shade, 200-White Exterior & 930-Painted Aged Brass Interior, TBK-Black Cotton Twist | Photo Courtesy of Homeowner, Melissa McCabe 1500 2173 72503
32627 61180 product 0 44860 A 16 C 0 0 fargo_wall_sconce_black_paddle4.jpg Fargo Wall Sconce, 100-Black, Paddle Switch | Photo Courtesy of Lori-Ann Donaldson from Crate No.8 (@crateno.8) 1024 1365 44860
40766 64821 product 0 52999 A 16 C 0 0 loma_cord_hung_navy_white_SBK2.jpg 12" Loma, Exterior in 705-Navy, Interior in 200-White, SBK-Standard Black Cord | Courtesy of Cream & Amber 900 1350 52999
44347 61180 product 0 56580 A 17 C 0 0 fargo_sconce_black.jpg The Fargo Wall Sconce Paddle Switch 800 1120 56580
59379 64821 product 0 71612 A 17 C 0 0 Loma_Pendant_Light_-_Delphite_Barn_Light_Electric_-_Modern_Dining_Room_Statement_Lighting.jpg 20” Shade, 765-Delphite Blue, SWH-Standard White Cord (Also pictured: Union Pendants, Seaside Goosenecks and Seaside Stem Mounts) | Photo Courtesy of The Maine Sprucehouse 1500 1500 71612
32476 61180 product 0 44709 A 18 C 0 0 Fargo_Wall_Sconces_in_200-White_Finish.jpg (2) Fargo Wall Sconces, 200-White Shade and Mounting, No Switch | Photo Courtesy of Aaron Usher Photography 548 1024 44709
59515 64821 product 0 71748 A 18 C 0 0 Loma_Pendant_-_Barn_Light_Electric_-_Deep_Bowl_Modern_Kitchen_Island_Lighting.JPG 16” Shade, 995-Raw Copper Interior & Exterior, CSBW-Black & White Cloth Cord (Also pictured: Gladstone Wall Sconce) | Photo Courtesy of Building Company Number 7 (@buildingcompanynumber.7) 1206 1179 71748
46021 61180 product 0 58254 A 19 C 0 0 fargo-wall-sconce-100-black-barn-light-electric.jpg Fargo Wall Sconce, 100-Black, Paddle Switch | Photo Courtesy of Lori-Ann Donaldson from Crate No.8 (@crateno.8) 1500 1500 58254
66327 64821 product 0 78560 A 19 C 0 0 Barnlights2-residential-interior-lighting-living-room-Loma-Pendant-16in-200-White-940-Painted-Aged-Copper-SWH.JPG 16" Loma Pendant, 200-White, 940-Painted Aged Copper, Standard White Cord | Customer Submission 4032 3024 78560
31991 61180 product 0 44224 A 20 C 0 0 fargo_copper_wall_sconce_oil_rubbed_copper_blackmount.jpg (2) Fargo Wall Sconces, 999-Oil-Rubbed Copper Shade, 100-Black Mounting, No Switch | Photo Courtesy of Cobalt Living and Ashlee Newman Photography 1500 2054 44224
61987 64821 product 0 74220 A 20 C 0 0 Loma_Pendant_Light_-_Blush_Pink_Brass_Barn_Light_Electric_-_Closet_Lighting.jpg 16” Shade, 480-Blush Exterior, 930-Painted Aged Brass Interior, SWH-Standard White Cord | Photo Courtesy of Homeowner 1500 2000 74220
60019 64821 product 0 72252 A 21 C 0 0 Loma_Pendant_Light_-_Barn_Light_Electric_-_Deep_Bowl_Lighting_Living_Room.JPG 16” Shade, 200-White Exterior Finish, 997-Raw Brass Interior Finish, CSGW-Gold & White Cloth Cord | Photo Courtesy of Lighting Environments 1242 1516 72252
62134 64821 product 0 74367 A 22 C 0 0 Loma_Pendant_Light_12in_200-White_997-RawBrass_SBK4.jpeg 12" Loma Pendant Light, 200-White, Interior in 997-Natural Raw Brass, SBK-Standard Black Cord | Photo Courtesy of Homeowner 1158 1390 74367
59516 64821 product 0 71749 A 23 C 0 0 Loma_Cord_Pendant_-_Barn_Light_Electric_-_Modern_Cord_Hung_Pendant_Kitchen_Island_Lighting.JPG 16” Shade, 995-Raw Copper Interior & Exterior, CSBW-Black & White Cloth Cord (Also pictured: Gladstone Wall Sconce) | Photo Courtesy of Building Company Number 7 (@buildingcompanynumber.7) 1225 1204 71749
58951 64821 product 0 71184 A 24 C 0 0 Loma_Cord_Pendants_-_975-Galvanized_Barn_Light_Electric_-_Restaurant_Lighting.jpg 20” Shade, 975-Galvanized Interior & Exterior, SBK-Standard Black Cord | Photo Courtesy of Health Nut LA 1500 1553 71184
64587 64821 product 0 76820 A 25 C 0 0 image0-residential-interior-dining-lighting-on-Loma-Pendant-20in-206-Matte-White-495-Sherbet-Orange-SWH.jpeg 20" Shade, Exterior in 206-Matte White, Interior in 495-Sherbet Orange, SWH-Standard White Cord | Photo Courtesy of Homeowner 1377 1836 76820