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 (
    64690, 64691, 64692, 65495, 65529, 65681
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00108

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": 46,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (64690,64691,64692,65495,65529,65681)"
        }
      }
    },
    "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
35471 64692 product 0 47704 A 0 D 0 0 original-stem-24in-black.jpg 24" The Original™ Stem Mount, 100-Black 1000 1000 47704
59430 65495 product 0 71663 A 0 D 0 0 original-chain-24in-Black-100-Charcoal-Granite-805-CSB-black-cloth-cord.jpg 24" The Original™ Chain Hung, 100-Black, Mounting in 805-Charcoal Granite, CSB-Black Cloth Cord 1000 1000 71663
59473 65495 product 0 71706 A 0 D 0 0 original-chain-28in-700-royal-blue-CSUW-200-white.jpg 28" The Original™ Chain Hung, 700-Royal Blue, Mounting in 200-White, CSUW-Blue & White Cloth Cord 1000 1000 71706
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
61824 65529 product 0 74057 A 0 D 0 0 original-flush-mount-28in-975-galvanized-400-barn-red-tgg-rib_g3f0-od.jpg 28" The Original™ Flush Mount, 975-Galvanized, TGG-Heavy Duty Cast Guard, 400-Barn Red, RIB-Ribbed Glass, Mounting in 400-Barn Red 1000 1000 74057
62266 64691 product 0 74499 A 0 D 0 0 original-gooseneck-28in-700-royal-blue-g65.jpg 28" The Original™, 700-Royal Blue, G65 Gooseneck Arm 1000 1000 74499
66545 65681 product 0 78778 A 0 D 0 0 _original-STUDIO-CABLE-24in-100-black-CSBB.jpg 24" The Original™ Studio Light, 100-Black, CSBB-Black & Brown Chevron Cloth Cord 1000 1000 78778
66556 65681 product 0 78789 A 0 D 0 0 _original-STUDIO-CABLE-24in-307-emerald-green-SBK.jpg 24" The Original™ Studio Light, 307-Emerald Green, SBK-Standard Black Cord 1000 1000 78789
66558 65681 product 0 78791 A 0 D 0 0 _original-STUDIO-CABLE-28in-495-Sherbert-Orange-975-TGG-SWH.jpg 28" The Original™ Studio Light, 495-Sherbet Orange, TGG-Heavy Duty Cast Guard, 975-Galvanized, CLR-Clear Glass, SWH-Standard White Cord 1000 1000 78791
66559 65681 product 0 78792 A 0 D 0 0 _original-STUDIO-CABLE-28in-700-royal-blue-CSUW-blue-white-cord.jpg 28" The Original™ Studio Light, 700-Royal Blue, CSUW-Blue & White Cloth Cord 1000 1000 78792
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
61556 64692 product 0 73789 A 1 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 73789
61864 65529 product 0 74097 A 1 D 0 0 original-flush-mount-24in-307-emerald-green_ly95-1q_9uuk-tx.jpg 24" The Original™ Flush Mount, 307-Emerald Green 1000 1000 74097
62265 64691 product 0 74498 A 1 D 0 0 original-gooseneck-28in-500-buttery-yellow-g8-100-black.jpg 28" The Original™, 500-Buttery Yellow, G8 Gooseneck Arm, 100-Black 1000 1000 74498
35472 64692 product 0 47705 A 2 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 47705
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
61829 65529 product 0 74062 A 2 D 0 0 original-flush-mount-28in-200-white.jpg 28" The Original™ Flush Mount, 200-White 1000 1000 74062
62261 64691 product 0 74494 A 2 D 0 0 original-gooseneck-24in-390-teal-g65-975-galvanized.jpg 24" The Original™, 390-Teal, G65 Gooseneck Arm, 975-Galvanized 1000 1000 74494
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
60789 64692 product 0 73022 A 3 C 0 0 The_Original_Warehouse_Stem_Mount_24_-_28inch_-_975_Galvanized_Barn_Light_Electric_-_Interior_Lighting.jpg 24" The Original™, 975-Galvanized, 12" Stem, 975-Galvanized, Heavy Duty Canopy, Wire Guard in 975-Galvanized, Clear Glass | Photo Courtesy of Customer 1500 1125 73022
61825 65529 product 0 74058 A 3 D 0 0 original-flush-mount-24in-100-black-975-galvanized-CGG-RIB_h5f6-ol.jpg 24" The Original™ Flush Mount, 100-Black, CGG-Standard Cast Guard, 975-Galvanized, RIB-Ribbed Glass 1000 1000 74058
62262 64691 product 0 74495 A 3 D 0 0 original-gooseneck-28in-200-white-g22.jpg 28" The Original™, 200-White, G22 Gooseneck Arm 1000 1000 74495
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
61827 65529 product 0 74060 A 4 D 0 0 original-flush-mount-28in-480-blush-pink.jpg 28" The Original™ Flush Mount, 480-Blush Pink 1000 1000 74060
62263 64691 product 0 74496 A 4 D 0 0 original-gooseneck-28in-307-emerald-green-g15.jpg 28" The Original™, 307-Emerald Green, G15 Gooseneck Arm 1000 1000 74496
35441 64691 product 0 47674 A 5 C 0 0 28in_barn_light_original_gooseneck.jpg 28" The Original™, 615-Oil-Rubbed Bronze, G22 Gooseneck Arm, CGG-Standard Cast Guard, CLR-Clear Glass 770 914 47674
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
61831 65529 product 0 74064 A 5 D 0 0 original-flush-mount-28in-700-Royal-Blue.jpg 28" The Original™ Flush Mount, 700-Royal Blue 1000 1000 74064
68021 65529 product 0 80254 A 5 C 0 0 image7-residential-interior-lighting-bathroom-Original-Warehouse-Flush-Mount-24in-570-Sunflower-980-Brushed-Aluminum.jpeg 24" The Original™ Flush Mount, 570-Sunflower, 980-Brushed Aluminum | Customer Submission 2838 2483 80254
35340 64690 product 0 47573 A 6 C 0 0 CR11367951584518948e075347.jpg 24" The Original™, 100-Black 1500 844 47573
55567 64691 product 0 67800 A 6 C 0 0 Schumacher_Homes_Idea_House_Front_Exterior_Twilight_100_Black_.jpg 24" The Original™, 100-Black, G8 Gooseneck Arm | Photo Courtesy of Schumacher Homes 1500 1000 67800
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
57352 64691 product 0 69585 A 7 C 0 0 Original_Warehouse_Gooseneck_Light_-_Barn_Light_Electric_-_Large_Exterior_Gooseneck_Lighting.jpg 24" Original Gooseneck Light, 100-Black, G22 Gooseneck Arm, TGG-Heavy Duty Cast Guard, Clear Glass | Photo Courtesy of Homeowner 913 948 69585
35439 64691 product 0 47672 A 8 C 0 0 american_made_gooseneck_lighting_li3n-my.jpg 24" The Original™, 975-Galvanized, G2 Gooseneck Arm 684 1024 47672
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
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
57394 64691 product 0 69627 A 9 C 0 0 Original_Warehouse_Gooseneck_-_Barn_Light_Electric_-_Oversized_Barn_Lighting.png 28” Original Gooseneck Light, 975-Galvanized, G22 Gooseneck Arm, TGG-Heavy Duty Guard, RIB-Ribbed Glass | Photo Courtesy of Homeowner 392 534 69627
57351 64691 product 0 69584 A 10 C 0 0 Original_Warehouse_Gooseneck_Light_-_100_Black_Barn_Light_Electric_-_Oversized_Large_Barn_Lighting_Exterior.jpg 24" Original Gooseneck Light, 100-Black, G22 Gooseneck Arm, TGG-Heavy Duty Cast Guard, Clear Glass | Photo Courtesy of Homeowner 1500 1234 69584
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
55568 64691 product 0 67801 A 11 C 0 0 barn_light_original_lighting__715x1024_.jpg 28" The Original™, 615-Oil-Rubbed Bronze, G22 Gooseneck Arm, CGG-Standard Cast Guard, CLR-Clear Glass 715 1024 67801
57098 64691 product 0 69331 A 12 C 0 0 Barn_Light_Electric_-_28in_Original_Warehouse_Gooseneck_-_975_Galvanized_Barn_Lighting.jpg 28” The Original™, 975-Galvanized, G22 Gooseneck Arm | Photo Courtesy of Customer 1500 2000 69331
58495 64691 product 0 70728 A 13 C 0 0 Original_Warehouse_Gooseneck_Light_-_Barn_Light_Electric_-_Modern_Exterior_Farmhouse_Gooseneck_Barn_Lighting_kthv-ir.jpg 24” Original™, 100-Black, G65 Gooseneck Arm in 975-Galvanized | Photo Courtesy of Homeowner 1500 1178 70728
58494 64691 product 0 70727 A 14 C 0 0 Original_Warehouse_Gooseneck_Light_-_Barn_Light_Electric_-_Modern_Exterior_Farmhouse_Gooseneck_Lighting_df8x-43.jpg 24” Original™, 100-Black, G65 Gooseneck Arm in 975-Galvanized | Photo Courtesy of Homeowner 1500 1033 70727
46055 64691 product 0 58288 A 15 C 0 0 original_gooseneck_24_inch_200_white_g36_g40.jpg 24" Original Gooseneck Light, 200-White, G36 Gooseneck Arm 600 429 58288
56526 64691 product 0 68759 A 16 C 0 0 Original_Warehouse_Gooseneck_Light_in_24in_-_975_Galvanized_Barn_Light_Electric_-_Exterior_Outdoor_Barn_Lighting.jpg 24” The Original™, 975-Galvanized, G22 Gooseneck Arm | Photo Courtesy of Customer 1500 1125 68759
58946 64691 product 0 71179 A 17 C 0 0 Original_Warehouse_Gooseneck_Light_-_Barn_Light_Electric_-_975_Galvanized_Barn_Lighting.jpg 24” Original™, 975-Galvanized, G26 Gooseneck Arm | Photo Courtesy of Nequette Architecture & Design and Chris Luker Photography 1500 994 71179