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 (
    65705, 65704, 65523, 65584, 65522, 65524, 
    65529, 65590, 65686, 65681, 65672, 
    65673
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00120

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": 70,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (65705,65704,65523,65584,65522,65524,65529,65590,65686,65681,65672,65673)"
        }
      }
    },
    "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
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
63858 65524 product 0 76091 A 0 D 0 0 wilcox-full-build-chain-24in-400-barn-red-100-black.jpg 24" Wilcox, 400-Barn Red, Mounting in 100-Black, SBK-Standard Black Cord 1000 1000 76091
63859 65524 product 0 76092 A 0 D 0 0 wilcox-chain-24in-705-navy-975-galvanized-CSGW.jpg 24" Wilcox, 705-Navy, Mounting in 975-Galvanized, CSGW-Gold & White Cloth Cord 1000 1000 76092
63860 65524 product 0 76093 A 0 D 0 0 wilcox-chain-24in-490-magenta-CSBW.jpg 24" Wilcox, 490-Magenta, CSBW-Black & White Cloth Cord 1000 1000 76093
63866 65523 product 0 76099 A 0 D 0 0 dbw24-307-emerald-green-csgw.jpg 24" Wilcox, 307-Emerald Green, CSGW-Gold & White Cloth Cord 1000 1000 76099
63867 65523 product 0 76100 A 0 D 0 0 dbw24-400-barn-red-csbw.jpg 24" Wilcox, 400-Barn Red, CSBW-Black & White Cloth Cord 1000 1000 76100
63868 65523 product 0 76101 A 0 D 0 0 dbw24-705-navy-crz.jpg 24" Wilcox, 705-Navy, CRZ-Red Chevron Cord 1000 1000 76101
63874 65522 product 0 76107 A 0 D 0 0 Wilcox-stem-24in-705-navy.jpg 24" Wilcox, 705-Navy 1000 1000 76107
63875 65522 product 0 76108 A 0 D 0 0 Wilcox-stem-24in-307-Emerald-Green-975-galvanized.jpg 24" Wilcox, 307-Emerald Green, Mounting in 975-Galvanized, Hang Straight Canopy 1000 1000 76108
63876 65522 product 0 76109 A 0 D 0 0 Wilcox-stem-24in-100-black-HDC.jpg 24" Wilcox, 100-Black, Heavy Duty Stem Mount Canopy 1000 1000 76109
64270 65584 product 0 76503 A 0 D 0 0 30in-Ellington-Studio-Cable-100-black-975-galvanized-CSBW_hvmc-s1.jpg Ellington 30" Pendant, 100-Black, Cup in 975-Galvanized, CSBW-Black & White Cloth Cord, Shown with 40W G40 Bulb 1000 1000 76503
64869 65590 product 0 77102 A 0 D 0 0 LOVELL-hardwire-307-emerald_il0r-w7_3hqn-yx.jpg Lovell Wall Sconce, 307-Emerald Green, Black Arm, SBK-Standard Black Cord 1000 1000 77102
64871 65590 product 0 77104 A 0 D 0 0 LOVELL-hardwire-400-barn-red.jpg Lovell Wall Sconce, 400-Barn Red, Black Arm, SBK-Standard Black Cord 1000 1000 77104
64872 65590 product 0 77105 A 0 D 0 0 LOVELL-hardwire-975-galvanized-weathered-brass-arm-CSBB_2jip-6t_ii1h-wc_vciw-mu.jpg Lovell Wall Sconce, 975-Galvanized, Weathered Brass Arm, CSBB-Black & Brown Cloth Cord 1000 1000 77105
64874 65590 product 0 77107 A 0 D 0 0 LOVELL-hardwire-100-black_kom4-n0.jpg Lovell Wall Sconce, 100-Black, Black Arm, SBK-Standard Black Cord 1000 1000 77107
64875 65590 product 0 77108 A 0 D 0 0 LOVELL-hardwire-997-raw-brass.jpg Lovell Wall Sconce, 997-Natural Raw Brass, Raw Brass Arm, CSGW-Gold & White Cloth Cord 1000 1000 77108
66375 65673 product 0 78608 A 0 D 0 0 emblem-stem-14in-400-barn-red.jpg 14" Emblem, 400-Barn Red 1000 1000 78608
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
66921 65686 product 0 79154 A 0 D 0 0 original-cord-12in-100-black-SBK.jpg 12" The Original™, 100-Black, SBK-Standard Black Cord 1000 1000 79154
67269 65705 product 0 79502 A 0 D 0 0 Barn-Light-Basics-Bomber-11in-200-white-SWH.jpg 11" Bomber, 200-White, SWH-Standard White Cord 1000 1000 79502
67287 65704 product 0 79520 A 0 D 0 0 Barn-Light-Basics-Bomber-11in-200-white-stem-12in-HSC.jpg 11" Bomber, 200-White, 12" Stem, Hang Straight Canopy 1000 1000 79520
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
64271 65584 product 0 76504 A 1 D 0 0 230in-Ellington-Studio-Cable-480-Blush-Pink-CSBP_2bx6-w6.jpg Ellington 30" Pendant, 480-Blush Pink, CSBP-Black & Pink Cloth Cord 1000 1000 76504
66371 65673 product 0 78604 A 1 D 0 0 emblem-stem-10in-307-emerald-green.jpg 10" Emblem, 307-Emerald Green 1000 1000 78604
67071 65686 product 0 79304 A 1 D 0 0 original-cord-16in-200-white-SWH.jpg 16" The Original™, 200-White, SWH-Standard White Cord 1000 1000 79304
67270 65705 product 0 79503 A 1 D 0 0 barn-light-basics-bomber-17in-300-dark-green-sbk-alt.jpg 17" Bomber, 300-Dark Green, SBK-Standard Black Cord 1000 1000 79503
67286 65704 product 0 79519 A 1 D 0 0 Barn-Light-Basics-Bomber-17in-300-dark-green-stem-18in.jpg 17" Bomber, 300-Dark Green, 18" Stem 1000 1000 79519
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
64272 65584 product 0 76505 A 2 D 0 0 30in-Ellington-Studio-Cable-FULL-BUILD-200-white-997-raw-brass-CSGW_g8wf-1w_r8mb-gy.jpg Ellington 30" Pendant, 200-White, Cup in 997-Natural Raw Brass, CSGW-Gold & White Cloth Cord, Shown with Enno LED Tala Lamp 1000 1000 76505
66373 65673 product 0 78606 A 2 D 0 0 emblem-stem-14in-100-black.jpg 14" Emblem, 100-Black 1000 1000 78606
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
67072 65686 product 0 79305 A 2 D 0 0 original-cord-16in-300-dark-green-SWH.jpg 16" The Original™, 300-Dark Green, SWH-Standard White Cord 1000 1000 79305
67271 65705 product 0 79504 A 2 D 0 0 Barn-Light-Basics-Bomber-13in-605-Rust-SWH.jpg 13" Bomber, 605-Rust, SWH-Standard White Cord 1000 1000 79504
67285 65704 product 0 79518 A 2 D 0 0 Barn-Light-Basics-Bomber-15in-100-black-stem-12in-HSC.jpg 15" Bomber, 100-Black, 12" Stem, Hang Straight Canopy 1000 1000 79518
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
64275 65584 product 0 76508 A 3 D 0 0 30in-Ellington-Studio-Cable-400-barn-red-CRZ_tt1r-1t.jpg Ellington 30" Pendant, 400-Barn Red, CRZ-Red Chevron Cord, Shown with Porcelain III LED Tala Lamp 1000 1000 76508
66923 65686 product 0 79156 A 3 C 0 0 Original-Warehouse-Pendant-Barn-Light-Electric-16in-300-Dark-Green-SBK-Barber-Shop.jpg 16" The Original™ Pendant, 300-Dark Green, SBK-Standard Black Cord 1500 1000 79156
67176 65705 product 0 79409 A 3 C 0 0 barn_lighting_farm_and_barn_pendants.jpg (3) 13" Bomber Pendants, 100-Black | Photo Courtesy of Reverend Nat's Hard Cidery & Taproom 576 864 79409
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
64274 65584 product 0 76507 A 4 D 0 0 30in-Ellington-Studio-Cable-200-white-995-raw-copper-CSW_fol0-pb.jpg Ellington 30" Pendant, 200-White, Cup in 995-Natural Raw Copper, CSW-White Cloth Cord, Shown with Nostalgic Edison-Style 1910 Era Bulb 1000 1000 76507
66374 65673 product 0 78607 A 4 D 0 0 emblem-stem-14in-390-teal-975-galvanized-HSC.jpg 14" Emblem, 390-Teal, Mounting in 975-Galvanized, Hang Straight Canopy 1000 1000 78607
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
66922 65686 product 0 79155 A 4 C 0 0 Original-Warehouse-Pendant-Barn-Light-Electric-16in-300-Dark-Green-SBK.jpg 16" The Original™ Pendant, 300-Dark Green, SBK-Standard Black Cord 1500 2250 79155
67177 65705 product 0 79410 A 4 C 0 0 farm_and_barn_cord_hung_pendant.jpg (3) 13" Bomber Pendants, 100-Black | Photo Courtesy of Reverend Nat's Hard Cidery & Taproom 576 864 79410
67241 65686 product 0 79474 A 4 C 0 0 JPEG-0199-original-2-light-stem-mount-original-warehouse-cord-hung-commercial-interior-restaurant-cafe.jpg 12" The Original™, 100-Black, SBK-Standard Black Cord 1500 1000 79474
67242 65686 product 0 79475 A 4 C 0 0 original-warehouse-pendant-16in-200-white-commercial-interior-photography-studio-industrial-on.jpg 16" The Original™, 200-White, SWH-Standard White Cord 1500 2250 79475
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
64268 65584 product 0 76501 A 5 D 0 0 30in-Ellington-Studio-Cable-705-Navy-CSW.jpg Ellington 30" Pendant, 705-Navy, CSW-White Cloth Cord, Shown with Elva LED Tala Lamp 1000 1000 76501
64870 65590 product 0 77103 A 5 D 0 0 LOVELL-hardwire-250-white.jpg Lovell Wall Sconce, 200-White, Galvanized Arm, SWH-Standard White Cord 1000 1000 77103
66376 65673 product 0 78609 A 5 D 0 0 emblem-stem-14in-500-buttery-yellow-swivel.jpg 14" Emblem, 500-Buttery Yellow, Swivel Knuckle 1000 1000 78609
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
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
68590 65705 product 0 80823 A 5 C 0 0 Hooper-36-commercial-exterior-lighting-Bomber-Pendant-Light-Barn-Light-Basics-15in-300-Dark-Green-SBK.jpg 15" Bomber, 300-Dark Green, SBK-Standard Black Cord | Photo Courtesy of Customer 1500 1001 80823
64273 65584 product 0 76506 A 6 D 0 0 30in-Ellington-Studio-Cable-600-bronze-CSBB.jpg Ellington 30" Pendant, 600-Bronze, CSBB-Black & Brown Cloth Cord, Shown with Totem II LED Tala Lamp 1000 1000 76506
64873 65590 product 0 77106 A 6 D 0 0 LOVELL-hardwire-500-buttery-yellow.jpg Lovell Wall Sconce, 500-Buttery Yellow, Galvanized Arm, SWH-Standard White Cord 1000 1000 77106
65409 65590 product 0 77642 A 6 C 0 0 lovell-hardwire-sconce-997-natural-raw-brass-csgw.jpg Lovell Wall Sconce, 997-Natural Raw Brass, Raw Brass Arm, CSGW-Gold & White Cloth Cord 1500 2250 77642
65410 65590 product 0 77643 A 6 C 0 0 lovell-hardwire-sconce-997-natural-raw-brass-csgw-alt.jpg Lovell Wall Sconce, 997-Natural Raw Brass, Raw Brass Arm, CSGW-Gold & White Cloth Cord 1500 1000 77643
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
67178 65705 product 0 79411 A 6 C 0 0 Farm_and_Barn_Cord_Hung_Pendats_100_Black_at_Lexi_Grace_Design.jpg (5) 13" Bomber Pendants, 100-Black | Photo Courtesy of Lexi Grace Design 1500 1000 79411
68598 65705 product 0 80831 A 6 C 0 0 IMG_8872-residential-interior-lighting-on-Bomber-Pendant-Light-15in-200-White-SWH.jpg 15" Bomber, 200-White, SWH-Standard White Cord | Photo Courtesy of Customer 1500 1251 80831
64269 65584 product 0 76502 A 7 D 0 0 30in-Ellington-Studio-Cable-100-black-CSBW.jpg Ellington 30" Pendant, 100-Black, CSBG-Black & Gold Cloth Cord, Shown with Voronoi I LED Tala Lamp 1000 1000 76502
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
68768 65584 product 0 81001 A 8 C 0 0 CP_02685-HDR.jpg 30" Ellington Pendant, 200-White, Standard White Cord | Photography Courtesy of Greg Smith, T.Y.I Construction Photography 4240 2832 81001
64296 65584 product 0 76529 A 9 C 0 0 dining-room-kitchen-30in-ellington-400-barn-red-csb-edison-bulb-megan-mccrea-alt.jpg Ellington 30" Pendant, 400-Barn Red, CSB-Black Cloth Cord 1500 1002 76529
64297 65584 product 0 76530 A 10 C 0 0 ellington-30in-700-royal-blue-csgw-edison-bulb-alt.jpg Ellington 30" Pendant, 700-Royal Blue, CSGW-Gold & White Cloth Cord 1500 900 76530