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 (
    63829, 63827, 64149, 64151, 62540, 62575
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00103

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": 60,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (63829,63827,64149,64151,62540,62575)"
        }
      }
    },
    "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
21952 62540 product 0 33844 A 0 D 0 0 static-FGU-355-jadite-honey-crackled-glass.jpg Industrial Static Topless Ring Sconce, 311-Jadite PTMP, HCR-Honey Crackle Glass 435 600 33844
27612 63827 product 0 39789 A 0 D 0 0 static-ring-cord-390-teal-FST-csbg.jpg Static Ring Pendant, 390-Teal, FST-Frosted Glass, CSBG-Black & Gold Cloth Cord 1000 1000 39789
27619 63829 product 0 39796 A 0 D 0 0 static-ring-stem-100-black-bulb.jpg Static Ring Stem Mount Pendant, 100-Black, Nostalgic Edison-Style 1890 Era 40 Watt Light Bulb 1000 1000 39796
28645 64149 product 0 40844 A 0 D 0 0 static-ring-2-Light-Vanity-straight-311-jadite-RIB.jpg Static Ring Double Vanity Light, Straight Arm Mounting, 311-Jadite, RIB-Ribbed Glass 1000 1000 40844
28656 64151 product 0 40855 A 0 D 0 0 static-ring-vanities-3-light-Bantam-100-black-bulb.jpg Static Ring Triple Vanity Light, Gooseneck Mounting, 100-Black, Nostalgic Edison-Style 1890 Era 40 Watt Light Bulb 1000 1000 40855
66599 62575 product 0 78832 A 0 D 0 0 streamline-industrial-ring-sconce-toggle-switch-700-Royal-CGG-RIB.jpg Streamline Industrial Ring Sconce, 700-Royal Blue, RIB-Ribbed Glass, Toggle Switch 4307 4307 78832
21953 62540 product 0 33845 A 1 D 0 0 static-FGU-250-white-smoke-crackle-glass.jpg Industrial Static Topless Ring Sconce, 200-White, SMK-Smoke Crackle Glass 453 600 33845
27611 63827 product 0 39788 A 1 D 0 0 static-ring-cord-full-build-100-black-fst-CSBW.jpg Static Ring Pendant, 100-Black, FST-Frosted Glass, CSBW-Black & White Cloth Cord 1000 1000 39788
27622 63829 product 0 39799 A 1 D 0 0 static-ring-stem-975-galvanized-490-magenta-bulb-HSC.jpg Static Ring Stem Mount, 490-Magenta, Mounting in 975-Galvanized, Hang Straight Canopy, Nostalgic Edison-Style 1890 Era 40 Watt Light Bulb 1000 1000 39799
28646 64149 product 0 40845 A 1 D 0 0 static-ring-2-Light-Vanity-Bantam-100-black-fst.jpg Static Ring Double Vanity Light, Gooseneck Mounting, 100-Black, FST-Frosted Glass 1000 1000 40845
28657 64151 product 0 40856 A 1 D 0 0 static-ring-vanities-3-light-straight-arm-500-buttery-yellow-RIB.jpg Static Ring Triple Vanity Light, Straight Arm Mounting, 500-Buttery Yellow, RIB-Ribbed Glass 1000 1000 40856
66614 62575 product 0 78847 A 1 D 0 0 streamline-industrial-ring-flared-galvanized-fst_r9ao-yx.jpg Streamline LED Industrial Ring Sconce, Flared Shade, 975-Galvanized, FST-Frosted Glass 1000 1000 78847
22113 62540 product 0 34005 A 2 D 0 0 static-FGU-455-cherry-red-honey-crackle-glass.jpg Industrial Static Topless Ring Sconce, 400-Barn Red, HCR-Honey Crackle Glass 449 600 34005
27614 63827 product 0 39791 A 2 D 0 0 static-ring-cord-500-buttery-yellow-CSUW.jpg Static Ring Pendant, 500-Buttery Yellow, RIB-Ribbed Glass, CSUW-Blue & White Cloth Cord 1000 1000 39791
27628 63829 product 0 39805 A 2 D 0 0 static-ring-stem-975-galvanized-FST.jpg Static Ring Stem Mount Pendant, 975-Galvanized, FST-Frosted Glass 1000 1000 39805
28647 64149 product 0 40846 A 2 D 0 0 static-ring-2-Light-Vanity-straight-arn-buttery-yellow.jpg Static Ring Double Vanity Light, Straight Arm Mounting, 500-Buttery Yellow, RIB-Ribbed Glass 1000 1000 40846
65925 64151 product 0 78158 A 2 D 0 0 static-ring-vanities-3-light-Bantam-307-emerald-FST.jpg Static Ring Triple Vanity Light, Gooseneck Mounting, 307-Emerald Green, FST-Frosted Glass 1000 1000 78158
66597 62575 product 0 78830 A 2 D 0 0 Streamline-Industrial-Ring-Sconce-715-Delphite-FST.jpg Streamline Industrial Ring Sconce, 715-Delphite, FST-Frosted Glass 1000 1000 78830
22115 62540 product 0 34007 A 3 D 0 0 static-FGU-355-jadite-smoke-crackled-glass.jpg Industrial Static Topless Ring Sconce, 311-Jadite PTMP, SMK-Smoke Crackle Glass 440 600 34007
27609 63827 product 0 39786 A 3 D 0 0 static-ring-cord-490-magenta-FST-csb.jpg Static Ring Pendant, 490-Magenta, FST-Frosted Glass, CSB-Black Cloth Cord 1000 1000 39786
27627 63829 product 0 39804 A 3 D 0 0 static-ring-stem-500-buttery-yellow-RIB.jpg Static Ring Stem Mount, 500-Buttery Yellow, RIB-Ribbed Glass 1000 1000 39804
28648 64149 product 0 40847 A 3 D 0 0 static-ring-2-Light-Vanity-Bantam-307-FST.jpg Static Ring Double Vanity Light, Gooseneck Mounting, 307-Emerald Green, FST-Frosted Glass 1000 1000 40847
28659 64151 product 0 40858 A 3 D 0 0 static-ring-vanities-3-light-straight-715-delphite-RIB.jpg Static Ring Triple Vanity Light, Straight Arm Mounting, 715-Delphite, RIB-Ribbed Glass 1000 1000 40858
66622 62575 product 0 78855 A 3 D 0 0 streamline-industrial-ring-magenta-ribbed_cvih-z6.jpg Streamline Industrial Ring Sconce, Warehouse Shade, 490-Magenta, RIB-Ribbed Glass, Toggle Switch 1000 1000 78855
22131 62575 product 0 34023 A 4 D 0 0 Streamline-Industrial-Ring-Sconce-400-barn-red-RIB.jpg Streamline Industrial Ring Sconce, 400-Barn Red, RIB-Ribbed Glass 1000 1000 34023
27608 63827 product 0 39785 A 4 D 0 0 static-ring-cord-200-white-CSW.jpg Static Ring Pendant, 200-White, RIB-Ribbed Glass, CSW-White Cloth Cord 1000 1000 39785
27621 63829 product 0 39798 A 4 D 0 0 static-ring-stem-715-delphite-FST.jpg Static Ring Stem Mount, 715-Delphite, FST-Frosted Glass 1000 1000 39798
28649 64149 product 0 40848 A 4 D 0 0 static-ring-2-Light-Vanity-straight-arm-480-blush-pink-FST.jpg Static Ring Double Vanity Light, Straight Arm Mounting, 480-Blush Pink, FST-Frosted Glass 1000 1000 40848
28658 64151 product 0 40857 A 4 D 0 0 static-ring-vanities-3-light-Bantam-400-barn-red-FST.jpg Static Ring Triple Vanity Light, Gooseneck Mounting, 400-Barn Red, FST-Frosted Glass 1000 1000 40857
55541 62540 product 0 67774 A 4 C 0 0 streamline_industrial_ring_sconce_100_black.jpg Industrial Static Topless Ring Sconce, 100-Black, Ribbed Glass | Photo Courtesy of Homeowner 1500 2000 67774
27613 63827 product 0 39790 A 5 D 0 0 static-ring-cord-307-emerald-bulb-CSBB.jpg Static Ring Pendant, 307-Emerald Green, CSBB-Black & Brown Cloth Cord, Nostalgic Edison-Style 1890 Era 40 Watt Light Bulb 1000 1000 39790
27624 63829 product 0 39801 A 5 D 0 0 static-ring-stem-400-barn-red-bulb.jpg Static Ring Stem Mount, 400-Barn Red, Nostalgic Edison-Style 1890 Era 40 Watt Light Bulb 1000 1000 39801
63700 62540 product 0 75933 A 5 C 0 0 Industrial_Static_Topless_Ring_Sconce_400_BarnRed_RibbedGlass3.jpg Industrial Static Topless Ring Sconce, 400-Barn Red, Ribbed Glass | Photo Courtesy of Homeowner 1500 1126 75933
65920 64149 product 0 78153 A 5 D 0 0 static-ring-2-Light-Vanity-bantam-705-navy-bulb.jpg Static Ring Double Vanity Light, Gooseneck Mounting, 705-Navy, Nostalgic Edison-Style 1890 Era 40 Watt Light Bulb 1000 1000 78153
65921 64149 product 0 78154 A 5 D 0 0 static-ring-2-Light-Vanity-200-white-rib.jpg Static Ring Double Vanity Light, Straight Arm Mounting, 200-White, RIB-Ribbed Glass 1000 1000 78154
65926 64151 product 0 78159 A 5 D 0 0 static-ring-vanities-3-light-straight-arm-200-white-RIB.jpg Static Ring Triple Vanity Light, Straight Arm Mounting, 200-White, RIB-Ribbed Glass 1000 1000 78159
66596 62575 product 0 78829 A 5 D 0 0 Streamline-Industrial-Ring-Sconce-500-buttery-yellow-FST.jpg Streamline Industrial Ring Sconce, 500-Buttery Yellow, FST-Frosted Glass 1000 1000 78829
27617 63827 product 0 39794 A 6 D 0 0 static-ring-cord-705-navy-bulb-CSGW.jpg Static Ring Pendant, 705-Navy, CSGW-Gold & White Cloth Cord, Nostalgic Edison-Style 1890 Era 40 Watt Light Bulb 1000 1000 39794
27620 63829 product 0 39797 A 6 D 0 0 static-ring-stem-200-white-RIB.jpg Static Ring Stem Mount, 200-White, RIB-Ribbed Glass 1000 1000 39797
28762 64149 product 0 40961 A 6 C 0 0 galvanized-ring-vanity.jpg Static Ring Double Vanity Light, Straight Arm Mounting, 975-Galvanized 700 500 40961
62408 62540 product 0 74641 A 6 C 0 0 Industrial_Static_Topless_Ring_Sconce_400_BarnRed_RibbedGlass2.jpg Industrial Static Topless Ring Sconce, 400-Barn Red, RIB-Ribbed Glass 1500 1609 74641
65927 64151 product 0 78160 A 6 D 0 0 static-ring-vanities-3-light-Bantam-705-navy-bulb.jpg Static Ring Triple Vanity Light, Gooseneck Mounting, 705-Navy, Nostalgic Edison-Style 1890 Era 40 Watt Light Bulb 1000 1000 78160
66598 62575 product 0 78831 A 6 D 0 0 streamline-industrial-ring-sconce-975-galvanized-dusk-to-dawn-CGG-FST.jpg Streamline Industrial Ring Sconce, 975-Galvanized, FST-Frosted Glass, Dusk to Dawn Photocell 1000 1000 78831
31980 63829 product 0 44213 A 7 C 0 0 static_ring_pendant_light-2.jpg Static Ring Stem Mount, 975-Galvanized, 1/2" Stem, No Glass 748 896 44213
32118 62575 product 0 44351 A 7 D 0 0 Streamline-Industrial-Ring-Sconce-311-jadite-FST.jpg Streamline Industrial Ring Sconce, 311-Jadite, FST-Frosted Glass 1000 1000 44351
53423 64151 product 0 65656 A 7 C 0 0 static_ring_triple_vanity_light_barnred_WVS3gooseneck_noglass3.jpg Static Ring Triple Vanity Light, Straight Arm Mounting, 400-Barn Red | Photo Courtesy of Stacy Wolfe Photography and Elle Designs 5365 3581 65656
67105 63829 product 0 79338 A 7 C 0 0 IMG_4816-residential-exterior-lighting-outdoor-kitchen-Static-Ring-Stem-Mount-Pendant-495-Sherbet-Orange-24in-Stem-100-Black-Frosted-Glass-Hang-Straight-Canopy.jpg Static Ring Stem Mount Pendant, 495-Sherbert Orange, 24" Stem, 100-Black, Frosted Glass, Hang Straight Canopy | Customer Submission 1988 1945 79338
68373 63827 product 0 80606 A 7 C 0 0 residential-interior-lighting-on-bathroom-vanity-Static-Ring-Pendant-100-Black-Frosted-Glass.jpg Static Ring Pendant, 100-Black, FST-Frosted Glass | Photo Courtesy of Kelly Horkoff 1500 2249 80606
68669 62540 product 0 80902 A 7 C 0 0 IMG_1630-residential-interior-lighting-window-Industrial-Static-Topless-RIng-Sconce-500-Buttery-Yellow-Frosted-Glass.jpg Industrial Static Topless Ring Sconce, 500-Buttery Yellow, FST-Frosted Glass | Photo Courtesy of Customer 1770 1320 80902
22133 62575 product 0 34025 A 8 D 0 0 Streamline-Industrial-Ring-Sconce-200-white-FST.jpg Streamline Industrial Ring Sconce, 200-White, FST-Frosted Glass 1000 1000 34025
49239 62540 product 0 61472 A 8 C 0 0 industrial_static_topless_ring_sconce_black_frosted_100_black.jpg Industrial Static Topless Ring Sconce, 100-Black, FST-Frosted Glass | Photo Courtesy of The Granville Barn 1500 1818 61472
53424 64151 product 0 65657 A 8 C 0 0 static_ring_triple_vanity_light_barnred_WVS3gooseneck_noglass2.jpg Static Ring Triple Vanity Light, Straight Arm Mounting, 400-Barn Red | Photo Courtesy of Stacy Wolfe Photography and Elle Designs 5365 3581 65657
66623 62575 product 0 78856 A 8 D 0 0 streamline-industrial-ring-705-navy-ribbed.jpg Streamline Industrial Ring Sconce, Warehouse Shade, 705-Navy, RIB-Ribbed Glass 1000 1000 78856
68374 63827 product 0 80607 A 8 C 0 0 residential-interior-lighting-on-bathroom-vanity-Static-Ring-Pendant-100-Black-Frosted-Glass-2.jpg Static Ring Pendant, 100-Black, FST-Frosted Glass | Photo Courtesy of Kelly Horkoff 1500 1840 80607
22156 62575 product 0 34048 A 9 D 0 0 Streamline-Industrial-Ring-Sconce-307-emerald-RIB.jpg Streamline Industrial Ring Sconce, 307-Emerald Green, RIB-Ribbed Glass 1000 1000 34048
28763 64151 product 0 40962 A 9 C 0 0 bronze-ring-vanity.jpg Static Ring Triple Vanity Light, Gooseneck Mounting, 600-Bronze 700 500 40962
49240 62540 product 0 61473 A 9 C 0 0 industrial_static_topless_ring_sconce_black_fst.jpg Industrial Static Topless Ring Sconce, 100-Black, FST-Frosted Glass | Photo Courtesy of The Granville Barn 1500 1125 61473
61431 63827 product 0 73664 A 9 C 0 0 Static_Ring_Pendant_Light_-_Barn_Light_Electric_-_Shop_lighting.JPG Static Ring Pendant, 975-Galvanized, Clear Glass, CMG-Grey Cloth Cord | Photo Courtesy of Customer 1513 1155 73664
61432 63827 product 0 73665 A 10 C 0 0 Static_Ring_Pendant_Light_-_Barn_Light_Electric_-_Interior_Lighting.JPG Static Ring Pendant, 975-Galvanized, Clear Glass, CMG-Grey Cloth Cord | Photo Courtesy of Customer 1150 816 73665
68673 63827 product 0 80906 A 10 C 0 0 IMG_6342-residential-interior-lighting-bathroom-vanity-Static-Ring-Pendant-400-Barn-Red-Red-Cotton-Twist-TRD-Frosted-Glass.jpg Static Ring Pendant, 400-Barn Red, FST-Frosted Glass, TRD-Red Cotton Twist Cord | Photo Courtesy of Customer 1500 1125 80906