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 (
    65424, 65650, 65681, 60738, 65793, 62671, 
    64340, 61386, 65672, 65425, 65300, 
    65534
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00126

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": 66,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (65424,65650,65681,60738,65793,62671,64340,61386,65672,65425,65300,65534)"
        }
      }
    },
    "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
33719 61386 product 0 45952 A 0 C 0 0 bathroom_lights_gooseneck_barn_lights__1_.jpg G35 Gooseneck Arm (Displayed Here: 12" Dino Gooseneck Light, 200-White, G35 Gooseneck Arm in 200-White | Customer Submission) 400 657 45952
59081 65424 product 0 71314 A 0 D 0 0 Bomber-flush-mount-11in-765-delphite-CGG.jpg 11" Bomber, 765-Porcelain Delphite, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 71314
59108 65300 product 0 71341 A 0 D 0 0 conoco-flush-mount-15in-480-blush-pink-975-galvanized.jpg 15" Conoco, 480-Blush Pink, Mounting in 975-Galvanized, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 71341
59131 65425 product 0 71364 A 0 D 0 0 marathon-flush-mount-16in-307-emerald-WC.jpg 16" Marathon, 307-Emerald Green, Wire Cage 1000 1000 71364
62275 60738 product 0 74508 A 0 D 0 0 G10-100-Black-gooseneck.jpg G10 Gooseneck Light, 100-Black 1000 1000 74508
62276 60738 product 0 74509 A 0 D 0 0 G10-307-emerald-green-gooseneck-.jpg G10 Gooseneck Light, 307-Emerald Green 1000 1000 74509
62277 60738 product 0 74510 A 0 D 0 0 G10-400-barn-red-gooseneck-.jpg G10 Gooseneck Light, 400-Barn Red 1000 1000 74510
62325 64340 product 0 74558 A 0 D 0 0 G65-100-black-gooseneck.jpg G65 Gooseneck Arm, 100-Black 1000 1000 74558
63136 62671 product 0 75369 A 0 D 0 0 LED-decorative-backing-plate-307-emerald-green.jpg LED Decorative Backing Plate Cover, 307-Emerald Green 1000 1000 75369
64556 65534 product 0 76789 A 0 D 0 0 schoolhouse-acorn-kao-cord-400-barn-red.jpg Kao Acorn Schoolhouse Pendant Light, 400-Barn Red, Clear Glass, CRZ-Red Chevron Cord, Shown with G40 Bulb 1000 1000 76789
66146 61386 product 0 78379 A 0 C 0 0 Barn_Light_4-residential-exterior-barn-garage-lighting-Rochester-Vintage-Industrial-Gooseneck-16in-100-Black-G35arm-CGG-100-Black-Clear-Glass.jpg G35 Gooseneck Arm (Displayed: 16" Rochester Vintage Industrial Gooseneck, 100-Black, Standard Cast Guard, 100-Black, Clear Glass | Customer Submission) 2789 3719 78379
66389 65672 product 0 78622 A 0 D 0 0 fire-chief-stem-12in-490-meganta-CGG-RIB-100-black.jpg 12" Fire Chief, 490-Magnenta, CGG-Standard Cast Guard, 100-Black, CLR-Clear Glass, Mounting in 100-Black 1000 1000 78622
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
69423 65793 product 0 81656 A 0 D 0 0 LOMA-Chandelier-Linear-2-Light-12in-100-black-incandescent.jpg Loma 2-Light Chandelier, 100-Black, 12" Arms 1000 1000 81656
59106 65300 product 0 71339 A 1 D 0 0 conoco-flush-mount-12in-100-black.jpg 12" Conoco, 100-Black, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 71339
59128 65425 product 0 71361 A 1 D 0 0 marathon-flush-mount-12in-997-brass-100-black.jpg 12" Marathon, 997-Natural Raw Brass, Mounting in 100-Black, Shown with LED Edison A19 Bulb 1000 1000 71361
62326 64340 product 0 74559 A 1 D 0 0 G65-200-white-gooseneck.jpg G65 Gooseneck Arm, 200-White 1000 1000 74559
63135 62671 product 0 75368 A 1 D 0 0 LED-decorative-backing-plate-100-black.jpg LED Decorative Backing Plate Cover, 100-Black 1000 1000 75368
63551 65424 product 0 75784 A 1 D 0 0 Bomber-flush-mount-17in-975-galvanized.jpg 17" Bomber, 975-Galvanized 1000 1000 75784
69429 65793 product 0 81662 A 1 D 0 0 LOMA-Chandelier-Linear-2-Light-16in-975-galvanized-490-magenta-12in-arm-incandescent.jpg Loma 2-Light Chandelier, 16" Shades, 975-Galvanized, Interior in 490-Magenta, 12" Arms, Mounting in 975-Galvanized 1000 1000 81662
56560 65300 product 0 68793 A 2 D 0 0 conoco-flush-mount-10in-250-white-100-black.jpg 10" Conoco, 250-Porcelain White, Mounting in 150-Black, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 68793
59085 65424 product 0 71318 A 2 D 0 0 Bomber-flush-mount-15in-400-barn-red-200-TGG.jpg 15" Bomber, 400-Barn Red, CGG-Standard Cast Guard 1000 1000 71318
59129 65425 product 0 71362 A 2 D 0 0 marathon-flush-mount-14in-250-white.jpg 14" Marathon, 250-Porcelain White, Shown with Nostalgic Edison 40W G30 Bulb 1000 1000 71362
62327 64340 product 0 74560 A 2 D 0 0 G65-975-galvanized-gooseneck.jpg G65 Gooseneck Arm, 975-Galvanized 1000 1000 74560
63138 62671 product 0 75371 A 2 D 0 0 LED-decorative-backing-plate-500-buttery-yellow.jpg LED Decorative Backing Plate Cover, 500-Buttery Yellow 1000 1000 75371
66392 65672 product 0 78625 A 2 D 0 0 fire-chief-stem-307-emerald-green-WC.jpg 14" Fire Chief, 307-Emerald Green, Wire Cage, 975-Galvanized 1000 1000 78625
69424 65793 product 0 81657 A 2 D 0 0 LOMA-Chandelier-Linear-2-Light-12in-307-emerald-green-incandescent.jpg Loma 2-Light Chandelier, 12" Shades, 307-Emerald Green, 12" Arms 1000 1000 81657
33744 64340 product 0 45977 A 3 C 0 0 chain-hung-gooseneck-black-bomber-1024x683-768x512.jpg G65 Gooseneck Arm (Displayed Here: Bomber Gooseneck Light, 100-Black 768 512 45977
56561 65300 product 0 68794 A 3 D 0 0 conoco-flush-mount-10in-765-delphite.jpg 10" Conoco, 765-Porcelain Delphite, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 68794
59082 65424 product 0 71315 A 3 D 0 0 Bomber-flush-mount-13in-300-dark-green-WC.jpg 13" Bomber, 300-Dark Green, Wire Cage 1000 1000 71315
59127 65425 product 0 71360 A 3 D 0 0 marathon-flush-mount-12in-400-barn-red.jpg 12" Marathon, 400-Barn Red, Shown with LED Edison G25 Bulb 1000 1000 71360
63137 62671 product 0 75370 A 3 D 0 0 LED-decorative-backing-plate-480-blush-pink.jpg LED Decorative Backing Plate Cover, 480-Blush Pink 1000 1000 75370
69427 65793 product 0 81660 A 3 D 0 0 LOMA-Chandelier-Linear-2-Light-12in-buttery-yellow-18in-arm-200-white-incandescent.jpg Loma 2-Light Chandelier, 500-Buttery Yellow, 18" Arms, Mounting in 200-White 1000 1000 81660
46459 62671 product 0 58692 A 4 D 0 0 LED_Decorative_Backing_Plate_Cover_-_Side_View_-_Barn_Light_Electric.png LED Decorative Backing Plate Cover Dimensions (Side View) 3334 3334 58692
56386 64340 product 0 68619 A 4 C 0 0 Wilcox_Deep_Bowl_Gooseneck_with_G65_Arm_-_Exterior_Wall_Mounted_Lighting_-_Barn_Light_Electric.jpg G65 Gooseneck Arm (Displayed Here: (4) 16” Wilcox, M103-Marine Grade Black, G65 Gooseneck Arm in 975-Galvanized, Dusk-to-Dawn Photocell | Photo Courtesy of Mandi Gubler at Vintage Revivals) 1000 1498 68619
59107 65300 product 0 71340 A 4 D 0 0 conoco-flush-mount-12in-400-barn-red.jpg 12" Conoco, 400-Barn Red, Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 71340
59130 65425 product 0 71363 A 4 D 0 0 marathon-flush-mount-14in-500-buttery-yellow-200-white.jpg 14" Marathon, 500-Buttery Yellow, Mounting in 200-White, Shown with LED Edison S14 Bulb 1000 1000 71363
63550 65424 product 0 75783 A 4 D 0 0 Bomber-flush-mount-17in-570-sunflower-100-black.jpg 17" Bomber, 570-Sunflower, Mounting in 100-Black 1000 1000 75783
66388 65672 product 0 78621 A 4 D 0 0 fire-chief-stem-12in-100-black.jpg 12" Fire Chief, 100-Black 1000 1000 78621
69425 65793 product 0 81658 A 4 D 0 0 LOMA-Chandelier-Linear-2-Light-12in-400-barn-red-incandescent.jpg Loma 2-Light Chandelier, 12" Shades, 400-Barn Red, 12" Arms 1000 1000 81658
46465 62671 product 0 58698 A 5 D 0 0 LED_Decorative_Backing_Plate_Cover_-_Front_View_-_Barn_Light_Electric.jpg LED Decorative Backing Plate Cover Dimensions (Front View) 3334 3334 58698
56562 65300 product 0 68795 A 5 D 0 0 conoco-flush-mount-10in-975-galvanized.jpg 10" Conoco, 975-Galvanized, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 68795
57032 64340 product 0 69265 A 5 C 0 0 Aero_Gooseneck_Light_-_150_Porcelain_Black_Barn_Light_Electric_-_Chain_Supported_Gooseneck_Exterior_Black_Lighting_ubtf-50.jpg G65 Gooseneck Arm (Displayed Here: 16” Aero, 100-Black, G65 Gooseneck Arm | Photos Courtesy of Homeowner) 1500 1576 69265
59083 65424 product 0 71316 A 5 D 0 0 Bomber-flush-mount-13in-998-weathered-brass-100-black.jpg 13" Bomber, 998-Natural Weathered Brass, Mounting in 100-Black 1000 1000 71316
64010 65425 product 0 76243 A 5 D 0 0 marathon-flush-mount-16in-975-galvanized-CGG-FST-400-Barn-Red.jpg 16" Marathon, 975-Galvanized, CGG-Standard Cast Guard, 400-Barn Red, FST-Frosted Glass 1000 1000 76243
66391 65672 product 0 78624 A 5 D 0 0 fire-chief-stem-14in-705-navy-980-brushed-aluminum.jpg 14" Fire Chief, 705-Navy, Mounting in 980-Brushed Aluminum 1000 1000 78624
69428 65793 product 0 81661 A 5 D 0 0 LOMA-Chandelier-Linear-2-Light-12in-oil-rubbed-copper-100-black-incandescent.jpg Loma 2-Light Chandelier, 16" Shades, 999-Natural Oil-Rubbed Copper, 12" Arms, Mounting in 100-Black 1000 1000 81661
22718 62671 product 0 34616 A 6 D 0 0 led-decorative-g22.jpg LED Decorative Backing Plate Cover, G22 Gooseneck Arm, 975-Galvanized 600 600 34616
58493 64340 product 0 70726 A 6 C 0 0 Original_Warehouse_Gooseneck_Light_-_100_Black_Barn_Light_Electric_-_Modern_Exterior_Farmhouse_Gooseneck_Barn_Lighting_wgm1-e0.jpg G65 Gooseneck Arm (Displayed Here: 24” Original™ , 100-Black, G65 Gooseneck Arm in 975-Galvanized | Photo Courtesy of Homeowner) 1500 1178 70726
59086 65424 product 0 71319 A 6 D 0 0 Bomber-flush-mount-15in-480-Blush-Pink-200-white.jpg 15" Bomber, 480-Blush Pink, Mounting in 200-White 1000 1000 71319
64009 65425 product 0 76242 A 6 D 0 0 marathon-flush-mount-16in-705-Navy.jpg 16" Marathon, 705-Navy, Shown with Globe LED Tala Lamp 1000 1000 76242
65068 65300 product 0 77301 A 6 D 0 0 conoco-flush-mount-15in-500-buttery-yellow-200-white.jpg 15" Conoco, 500-Buttery Yellow, Mounting in 200-White, Nostalgic Edison-Style Victorian 40 Watt Light Bulb 1000 1000 77301
65730 65425 product 0 77963 A 6 C 0 0 BarnLight1-residential-interior-lighting-kitchen-dining-Downtown-Minimalist-6-Light-Chandelier-480-Blush-Pink-SWH-Marathon-Flush-Mount-16in-480-Blush-Pink.jpg 16" Marathon, 480-Blush Pink 2048 1365 77963
66393 65672 product 0 78626 A 6 D 0 0 fire-chief-stem-400-barn-red.jpg 14" Fire Chief, 400-Barn Red 1000 1000 78626
69426 65793 product 0 81659 A 6 D 0 0 LOMA-Chandelier-Linear-2-Light-12in-705-navy-995-copper.jpg Loma 2-Light Chandelier, 12" Shades, 705-Navy, Interior in 995-Natural Raw Copper, 12" Arms, Mounting in 705-Navy 1000 1000 81659
62407 64340 product 0 74640 A 7 C 0 0 Original_Gooseneck_Light_16in_455_CherryRed_G65arm_975-Galvanized_CGG_975-Galvanized_ClearGlass5.jpg G65 Gooseneck Arm (Displayed Here: 16” Original™, 455-Cherry Red, CGG-Standard Cast Guard, 975-Galvanized, G65 Gooseneck Arm in 975-Galvanized) 1500 1562 74640
63549 65424 product 0 75782 A 7 D 0 0 Bomber-flush-mount-17in-100-black.jpg 17" Bomber, 100-Black 1000 1000 75782
66390 65672 product 0 78623 A 7 D 0 0 fire-chief-stem-14in-300-dark-green.jpg 14" Fire Chief, 300-Dark Green 1000 1000 78623
68119 65672 product 0 80352 A 7 C 0 0 firechief-stem-600-bronze.jpg 14" Fire Chief, 600-Bronze 1224 1224 80352
59084 65424 product 0 71317 A 8 D 0 0 Bomber-flush-mount-15in-250-White.jpg 15" Bomber, 250-Porcelain White 1000 1000 71317
65593 65424 product 0 77826 A 8 C 0 0 IMG_2136-bomber-flush-mount-pendant-17in-650-bronze-975-galvanized-residential-interior.JPG 17" Bomber, 650-Bronze, 975-Galvanized | Photo Courtesy of Homeowner 2678 2459 77826
68591 65424 product 0 80824 A 8 C 0 0 DAA2D52B-residential-interior-lighting-mudroom-Bomber-Flush-Mount-Pendant-13in-998-Weathered-Brass-Mounting-600-Bronze.jpg 13" Bomber Flush Mount, 998-Weathered Brass, 600-Bronze Mounting, Photo courtesy of homeowner 3610 2398 80824