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 (60138, 62984, 61520, 62057) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00101

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": 52,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (60138,62984,61520,62057)"
        }
      }
    },
    "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
19703 62057 product 0 31492 A 0 D 0 0 wilcox-vented-cord-12in-705-navy-cloth-cord.jpg 12" Wilcox Vented, 705-Navy, Narrow Slot Vents, Navy Cloth Cord 1000 1000 31492
23742 62984 product 0 35673 A 0 D 0 0 KAO-jadeite-canopy-ivanhoe-gladstone-jadeite-alt.jpg 8" Kao Gladstone Pendant, 355-Jadite, Nickel Socket with Knob Switch, CRZ-Red Chevron Cord, Canopy in 311-Jadite 600 600 35673
60335 61520 product 0 72568 A 0 D 0 0 Barn_Light_Mini_Artesia_Pendant_-_Barn_Light_Electric_-_Pendant_Lighting.jpg Mini Artesia Pendant, 500-Buttery Yellow, TBK-Black Cotton Twist Cord 3960 3990 72568
60337 61520 product 0 72570 A 0 D 0 0 Barn_Light_Mini_Artesia_Pendant_-_Barn_Light_Electric_-_Cord_Pendant_Lighting.jpg Mini Artesia Pendant, 400-Barn Red, TBW-Red and Black Twist Cord 3960 3990 72570
60338 61520 product 0 72571 A 0 D 0 0 Barn_Light_Mini_Artesia_Pendant_-_Barn_Light_Electric_-_American_Made_Cord_Pendant_Lighting.jpg Mini Artesia Pendant, 750-Navy, CSGW-Gold & White Cloth Cord 3960 3990 72571
63598 61520 product 0 75831 A 0 C 0 0 residential-inteior-kitchen-lighting-mini-artesia-pendant-500-buttery-yellow-standard-black-cord.jpg Mini Artesia Pendant, 500-Buttery Yellow, SBK-Standard Black Cord | Photo Courtesy of Homeowner 1500 1699 75831
65769 60138 product 0 78002 A 0 D 0 0 fargo-spoke-top-pendant-400-barn-red-TRD.jpg Fargo Pendant, 400-Barn Red, Cup with Arms and Turn Key Switch, TDR-Red Cotton Twist Cord 1000 1000 78002
19701 62057 product 0 31490 A 1 D 0 0 wilcox-vented-cord-14in-975-galvanized-silver-cloth-cord.jpg 14" Wilcox Vented, 975-Galvanized, Circle Vents, Silver Cloth Cord 1000 1000 31490
23741 62984 product 0 35672 A 1 D 0 0 KAO-gladstone-cord-250-white-100-black-CRZ-alt.jpg 6" Kao Gladstone Pendant, 250-White, Nickel Socket with Paddle Switch, CSRW-Red & White Cloth Cord, Canopy in 100-Black 1000 1000 35672
65772 60138 product 0 78005 A 1 D 0 0 fargo-spoke-top-pendant-997-raw-brass-100-black-CSBG.jpg Fargo Pendant, 997-Natural Raw Brass, Wire Cage in 100-Black, Cup in 100-Black, No Arms with Turn Key Switch, CSBG-Black & Gold Cloth Cord 1000 1000 78005
23743 62984 product 0 35674 A 2 D 0 0 KAO-white-canopy-ivanhoe-gladstone-red-alt.jpg 10" Kao Gladstone Pendant, 455-Cherry Red, Brass Socket with Knob Switch, SWH-Standard White Cord, Canopy in 210-White 1000 1000 35674
29941 62057 product 0 42164 A 2 D 0 0 wilcox-vented-cord-20in-400-barn-red-swirl-cord.jpg 20" Wilcox Vented, 400-Barn Red, Circle Vents, Barn Red & Black Swirl Cloth Cord 1000 1000 42164
65766 60138 product 0 77999 A 2 D 0 0 fargo-spoke-top-pendant-200-white-100-black-TBW.jpg Fargo Pendant, 200-White, Cup in 100-Black, With Arms and Turn Key Switch, TBW-Black & White Cotton Twist Cord 1000 1000 77999
19704 62057 product 0 31493 A 3 D 0 0 wilcox-vented-cord-16in-300-dark-green-SBK.jpg 16" Wilcox Vented, 300-Dark Green, Circle Vents, Standard Black Cord 1000 1000 31493
64338 62984 product 0 76571 A 3 C 0 0 IMG_4812-residential-interior-kitchen-island-lighting-Kao-Gladstone-Pendant-10in-250-White-Gold-White-Cloth-Cord-Brass-Socket.jpg 10" Kao Gladstone, 250-White, Gold & White Cloth Cord, Brass Socket | Photo Courtesy of Homeowner 2001 1501 76571
65771 60138 product 0 78004 A 3 D 0 0 fargo-spoke-top-pendant-700-royal-CSUW.jpg Fargo Pendant, 700-Royal Blue, Cup with Arms and Paddle Switch, CSUW-Blue & White Cloth Cord 1000 1000 78004
29197 62984 product 0 41417 A 4 C 0 0 ivanhoe_gladstone_dome_shape_pendant.jpg 10" Kao Gladstone, 200-White, Nickel Socket with Paddle Switch, TRD-Red Cotton Twist Cord | Customer Submission 1024 683 41417
62948 62057 product 0 75181 A 4 C 0 0 16in-wilcox-vented-pendant-galvanized-narrow-slot-vent-sbk.jpg 16" Wilcox Vented Cord Hung Pendant, 975-Galvanized, Narrow Slot Vent, SBK-Standard Black Cord 1500 2000 75181
65770 60138 product 0 78003 A 4 D 0 0 fargo-spoke-top-pendant-480-blush-pink-975-galvanized-CSBP.jpg Fargo Pendant, 480-Blush Pink, Cup in 975-Galvanized, No Arms with Paddle Switch, CSBP-Black & Pink Cloth Cord 1000 1000 78003
36578 62057 product 0 48811 A 5 C 0 0 wesco_vented_cord_12in_white_CSBW.jpg (2) 12" Wilcox Vented Cord Hung Pendants, 200-White, Narrow Slot Vent, CSBW - Black & White Clot | Photo Courtesy of Home Owner 1500 2285 48811
62269 62984 product 0 74502 A 5 C 0 0 Kao_Gladstone_Pendant_Light_8in_150_Black_TBK_BlackSocket_KnobSwitch_60WEdison10.jpg 8" Kao Gladstone, 100-Black, Black Socket with Knob Switch, TBK-Black Cotton Twist Cord | Photo Courtesy of Homeowner 1500 1832 74502
65768 60138 product 0 78001 A 5 D 0 0 fargo-spoke-top-pendant-307-emerald-green-CSBB.jpg Fargo Pendant, 307-Emerald Green, Cup with Arms and No Switch, CSBB-Black & Brown Cloth Cord 1000 1000 78001
29196 62984 product 0 41416 A 6 C 0 0 small-gladstone-graphite.jpg 6" Kao Gladstone, 850-Graphite, Nickel Socket with No Switch, SWH-Standard White Cord | Customer Submission 450 700 41416
60769 62057 product 0 73002 A 6 C 0 0 Wilcox_Vented_Cord_Pendant_-_100_Black_Barn_Light_Electric_-_Dining_Room_Pendant_Lighting4.jpg 20” Wilcox Vented Cord Hung Pendants, 100-Black, Narrow Slot Vent, SBK-Standard Black Cord | Photo Courtesy of Designs North West 1500 2000 73002
65767 60138 product 0 78000 A 6 D 0 0 fargo-spoke-top-pendant-200-white-TWH.jpg Fargo Pendant, 200-White, Cup with No Arms, and No Switch, TWH-White Cotton Twist Cord 1000 1000 78000
60770 62057 product 0 73003 A 7 C 0 0 Wilcox_Vented_Cord_Pendant_-_100_Black_Barn_Light_Electric_-_Dining_Room_Pendant_Lighting_61t1-u3.jpg 20” Wilcox Vented Cord Hung Pendants, 100-Black, Narrow Slot Vent, SBK-Standard Black Cord | Photo Courtesy of Designs North West 1500 1000 73003
60778 60138 product 0 73011 A 7 C 0 0 Fargo_Pendant_Light_-_200_White_Barn_Light_Electric_-_Hallway_Lighting.jpg Fargo Pendant, 200-White, Cup in 100-Black, Turn Key Switch, SBK-Standard Black Cord | Photo Courtesy of Lara Anderson (@3nutshells) and Klugmann Media 1500 1000 73011
62270 62984 product 0 74503 A 7 C 0 0 Kao_Gladstone_Pendant_Light_8in_150_'Black_TBK_BlackSocket_KnobSwitch_60WEdison18.jpg 8" Kao Gladstone, 100-Black, Black Socket with Knob Switch, TBK-Black Cotton Twist Cord | Photo Courtesy of Homeowner 1500 1907 74503
35902 62057 product 0 48135 A 8 C 0 0 wesco_vented_pendant_rawcopper_12in_sbk_verticalvent3.jpg (8) 12" Wilcox Vented Cord Hung Pendants, 995-Raw Copper, Narrow Slot Vent, SBK-Standard Black Cord, Copper Hex Cover | Photo Courtesy of Campfire & Co. 1500 2250 48135
56901 60138 product 0 69134 A 8 C 0 0 Fargo_Pendant_Light_-_Barn_Light_Electric_-_995_Raw_Copper_Kitchen_Pendant_Lighting.jpg Fargo Pendant, 995-Natural Raw Copper, Cup in 975-Galvanized, Arms with Paddle Switch, CSBW-Black & White Cloth, Ceiling Canopy in 100-Black | Photo Courtesy of Homeowner 1500 1141 69134
35130 62057 product 0 47363 A 9 C 0 0 wilcox-vented-100-black-narrow-slot-vent.jpg 16" Wilcox Vented Cord Hung Pendant Lights, 100-Black, Narrow Slot Vents, TBW-Black & White Chevron Twist Cord | Photo Courtesy of Lolly Jane Blog 1500 2342 47363
60299 60138 product 0 72532 A 9 C 0 0 Fargo_Pendant_Light_-_995_Natural_Raw_Copper_Barn_Light_Electric_-_Interior_Design_Dining_Room_Lighting.jpg Fargo Pendant, 995-Raw Copper, Cup in 100-Black, No Arms and No Switch, SBK-Standard Black Cord | Photo Courtesy of Customer 1500 1000 72532
60767 62057 product 0 73000 A 10 C 0 0 Wilcox_Vented_Cord_Pendant_-_100-Black-Barn_Light_Electric_-_Dining_Room_Pendant_Lighting.jpg 20” Wilcox Vented Cord Hung Pendants, 100-Black, Narrow Slot Vent, SBK-Standard Black Cord | Photo Courtesy of Designs North West 1500 1500 73000
62415 60138 product 0 74648 A 10 C 0 0 Fargo_Pendant_Light_995-Raw-Copper_CSBW_975-GalvanizedCup_PaddleSwitch4.jpg Fargo Pendant, 995-Natural Raw Copper, Cup in 975-Galvanized, Arms with Paddle Switch, CSBW-Black & White Cloth Cord | Photo Courtesy of Tilted Barn Brewery & Apex Lighting 1500 2000 74648
32296 62057 product 0 44529 A 11 C 0 0 wesco_vented_pendant_raw_copper_12in_sbk_verticalvent.jpg (5) 12" Wilcox Vented Cord Hung Pendants, 995-Raw Copper, Narrow Slot Vent, SBK-Standard Black Cord, Copper Hex Cover | Photo Courtesy of Campfire & Co. 1500 990 44529
60298 60138 product 0 72531 A 11 C 0 0 Fargo_Pendant_Light_-_995_Natural_Raw_Copper_Barn_Light_Electric_-_Interior_Dining_Room_Lighting.jpg Fargo Pendant, 995-Raw Copper, Cup in 100-Black, No Arms and No Switch, SBK-Standard Black Cord | Photo Courtesy of Customer 1500 1000 72531
60771 62057 product 0 73004 A 12 C 0 0 Wilcox_Vented_Cord_Pendant_-_100_Black_Barn_Light_Electric_-_Dining_Room_Pendant_Lighting2.jpg 20” Wilcox Vented Cord Hung Pendants, 100-Black, Narrow Slot Vent, SBK-Standard Black Cord | Photo Courtesy of Designs North West 1500 2163 73004
60777 60138 product 0 73010 A 12 C 0 0 Fargo_Pendant_Light_-_200_White_Barn_Light_Electric_-_Hallway_Pendant_Lighting.jpg Fargo Pendant, 200-White, Cup in 100-Black, Turn Key Switch, SBK-Standard Black Cord | Photo Courtesy of Lara Anderson (@3nutshells) and Klugmann Media 1500 2251 73010
29906 60138 product 0 42129 A 13 C 0 0 copper-fargo-galv-cup.jpg Fargo Pendant, 995-Natural Raw Copper, Cup in 975-Galvanized, With Arms and Paddle Switch, SWH-Standard White Cord 700 500 42129
50062 62057 product 0 62295 A 13 C 0 0 wesco_vented_cord_12in_200_white_CSBW416.jpg 12" Wilcox Vented Cord Hung Pendants, 200-White, Narrow Slot Vent, CSBW - Black & White Clot | Photo Courtesy of Home Owner 1500 1861 62295
60772 62057 product 0 73005 A 14 C 0 0 Wilcox_Vented_Cord_Pendant_-_100_Black_Barn_Light_Electric_-_Dining_Room_Pendant_Lighting3_l091-gr.jpg 20” Wilcox Vented Cord Hung Pendants, 100-Black, Narrow Slot Vent, SBK-Standard Black Cord | Photo Courtesy of Designs North West 1500 1061 73005
63714 60138 product 0 75947 A 14 C 0 0 20-residential-interior-lighting-dining-room-fargo-pendant-light-black-cloth-cord-105-textured-black_995_natural_raw_copper__2_.jpg Fargo Pendant, 105-Textured Black, SBK-Standard Black Cord | Photo Courtesy of Honey and Ace 1500 1412 75947
30249 62057 product 0 42472 A 15 C 0 0 barn_lighting_pendants-539x768.jpg 16" Wilcox Vented Cord Hung Pendant Lights, 100-Black, Narrow Slot Vents, TBW-Black & White Chevron Twist Cord | Photo Courtesy of Lolly Jane Blog 539 768 42472
60305 60138 product 0 72538 A 15 C 0 0 Fargo_Pendant_Light_-_Barn_Light_Electric_-_Interior_Horse_Barn_Lighitng.jpeg Fargo Pendant, 995-Raw Copper, Cup in 970-Mahogany, No Arms and No Switch, SBK-Standard Black Cord | Photo Courtesy of Kate Zachrich 1512 2016 72538
32295 62057 product 0 44528 A 16 C 0 0 wesco_vented_pendant_raw_copper_12in_sbk_verticalvent5.jpg (7) 12" Wilcox Vented Cord Hung Pendants, 995-Natural Raw Copper, Narrow Slot Vent, SBK-Standard Black Cord, Copper Hex Cover | Photo Courtesy of Campfire & Co. 1500 1029 44528
20628 62057 product 0 32455 A 17 C 0 0 wesco-deep-bowl-vented-200-white.jpg 16" Wilcox Vented Cord Hung Pendant, 200-White, Circle Vent, CSB-Black Cloth Cord 1000 750 32455
28564 62057 product 0 40763 A 18 C 0 0 354B1428-fall.jpg (2) 20" Wilcox Vented Cord Hung Pendant Lights, 100-Black, SBK-Standard Black Cord | Pictured with our Porcelain Enamel Dinnreware 1000 667 40763
30400 62057 product 0 42632 A 19 C 0 0 commercial_barn_lights-768x511.jpg (4) 14" Wilcox Vented Cord Hung Pendant Lights, 105-Textured Black, Circle Vents, SBK-Standard Black Cord | Photo Courtesy of Madeline Broderick Photography, The Chris & Claude Company and Café One Eight 768 511 42632
62949 62057 product 0 75182 A 20 C 0 0 16in-wilcox-vented-narrow-slot-vent-galvanized-sbk.jpg 16" Wilcox Vented Cord Hung Pendant, 975-Galvanized, Narrow Slot Vent, SBK-Standard Black Cord 1500 1125 75182
51662 62057 product 0 63895 A 21 C 0 0 DSC00305_copy.jpg 20” Wilcox Vented Cord Hung Pendants, 100-Black, Circle Vent, CSBW - Black & White Clot | Photo Courtesy of Kangaroom Systems 1140 1536 63895
60768 62057 product 0 73001 A 22 C 0 0 Wilcox_Vented_Cord_Pendant_-_100_Black_Barn_Light_Electric_-_Dining_Room_Pendant_Lighting3.jpg 20” Wilcox Vented Cord Hung Pendants, 100-Black, Narrow Slot Vent, SBK-Standard Black Cord | Photo Courtesy of Designs North West 1500 1091 73001
64486 62057 product 0 76719 A 23 D 0 0 IMG_0240-commercial-interior-restaurant-dining-room-table-wilcox-vented-uplight-cord-pendant-420-orange-975-galvanized-wire-cage-100-black-canopy-narrow-slot-vent-SBK-standard-black-cord-on.jpg 16" Wilcox Vented Cord Pendant, 420-Orange, Wire Cage, 975-Galvanized, Narrow Slot Vent, SBK-Standard Black Cord 3024 4032 76719