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 (
    65005, 65037, 64920, 65122, 65064, 65069, 
    65496, 65527, 65525, 65530, 65443, 
    65429
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00163

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 (65005,65037,64920,65122,65064,65069,65496,65527,65525,65530,65443,65429)"
        }
      }
    },
    "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
47254 64920 product 0 59487 A 0 D 0 0 loma-chain-hung-medium-mint-galvanized-interior-mint-chain-white-cord.jpg 16" Loma LED, Exterior in 370-Mint Interior in 975-Galvanized, Chain in 370-Mint with SWH-Standard White Cord 1000 1000 59487
47255 64920 product 0 59488 A 0 D 0 0 loma-chain-hung-small-red-white-interior-red-chain-red-white-cord.jpg 12" Loma LED, Exterior in 400-Barn Red, Interior in 200-White, Chain in 400-Barn Red with CSRW-Red & White Cloth Cord 1000 1000 59488
47256 64920 product 0 59489 A 0 D 0 0 loma-chain-hung-small-galvanized-black-chain-pink-black-cord.jpg 12" Loma LED, 975-Galvanized, Chain in 100-Black with CSBP-Black & Pink Cloth Cord 1000 1000 59489
47257 64920 product 0 59490 A 0 D 0 0 loma-chain-hung-small-black-brass-interior-black-chain-black-cord.jpg 12" Loma LED, Exterior in 100-Black, Interior in 997-Raw Brass, Chain in 100-Black with SBK-Standard Black Cord 1000 1000 59490
47259 64920 product 0 59492 A 0 D 0 0 loma-chain-hung-medium-black-watermelon.jpg 16" Loma LED, Exterior in 100-Black, Interior in 470-Watermelon, Chain in 100-Black with CSBP-Black & Pink Cloth Cord 1000 1000 59492
47261 64920 product 0 59494 A 0 D 0 0 loma-chain-hung-small-magenta-black.jpg 12" Loma LED, Exterior in 490-Magenta, Interior in 100-Black, Chain in 100-Black with SBK-Standard Black Cord 1000 1000 59494
47265 64920 product 0 59498 A 0 D 0 0 locke-chain-hung-small-yellow-black-chain-black-cord_ibfp-fj.jpg 12" Loma LED, 550-Porcelain Yellow, Black Chain & SBK-Standard Black Cord 1000 1000 59498
47266 64920 product 0 59499 A 0 D 0 0 locke-chain-hung-medium-jadite-galvanized-chain-gold-white-cord_0d0j-04.jpg 16" Loma LED, 355-Porcelain Jadite, Galvanize Chain & Gold & White Cloth Cord 1000 1000 59499
50901 65005 product 0 63134 A 0 D 0 0 Dino-chain-12in-765-delphite-SWH.jpg 12" Dino LED, 765-Porcelain Delphite, SWH-Standard White Cord 1000 1000 63134
51816 65069 product 0 64049 A 0 D 0 0 marathon-chain-14in-500-buttery-yellow-CGG-FST-CSW.jpg 14" Marathon Nautical LED, 500-Buttery Yellow, CGG-Standard Cast Guard, FST-Frosted Glass, CSW-White Cloth Cord 1000 1000 64049
59433 65496 product 0 71666 A 0 D 0 0 original-chain-28in-975-galvanized-455-cherry-red-SBK-standard-black-cord_w9jj-gq.jpg 28" The Original™ LED Chain Hung, 975-Galvanized, Mounting in 400-Barn Red, SBK-Standard Black Cord 1000 1000 71666
59434 65496 product 0 71667 A 0 D 0 0 original-chain-28in-700-royal-blue-CSUW-200-white_egs5-el.jpg 28" The Original™ LED Chain Hung, 700-Royal Blue, Mounting in 200-White, CSUW-Blue & White Cloth Cord 1000 1000 71667
60176 65429 product 0 72409 A 0 D 0 0 Original-Flush-Mount-LED-16in-500-buttery-yellow-200-white.jpg 20" The Original™ LED Flush Mount, 500-Buttery Yellow, Mounting in 200-White 1000 1000 72409
61481 65496 product 0 73714 A 0 D 0 0 28in-original-chain-mint-white-chain-standard-white-cord.jpg 28" The Original™ LED Chain Hung, 370-Mint, Chain in 200-White, SWH-Standard White Cord 1000 1000 73714
61821 65443 product 0 74054 A 0 D 0 0 original-flush-mount-24in-100-black-975-galvanized-CGG-RIB.jpg 24" The Original™ Nautical LED Flush Mount, 100-Black, CGG-Standard Cast Guard, 975-Galvanized, RIB-Ribbed Glass 1000 1000 74054
61861 65530 product 0 74094 A 0 D 0 0 Original-Flush-Mount-LED-24in-390-teal.jpg 24" The Original™ LED Flush Mount, 390-Teal 1000 1000 74094
61862 65530 product 0 74095 A 0 D 0 0 Original-Flush-Mount-LED-28in-royal-blue.jpg 28" The Original™ LED Flush Mount, 700-Royal Blue 1000 1000 74095
61863 65530 product 0 74096 A 0 D 0 0 Original-Flush-Mount-LED-24in-705-navy.jpg 24" The Original™ LED Flush Mount, 705-Navy 1000 1000 74096
62905 65037 product 0 75138 A 0 D 0 0 Avalon-chain-14in-100-black-CGG-FST-CSR.jpg 14" Avalon Nautical LED, 100-Black, CGG-Standard Cast Guard, FST-Frosted Glass, CSR-Red Cloth Cord 1000 1000 75138
63878 65527 product 0 76111 A 0 D 0 0 Wilcox-LED-stem-24in-307-Emerald-Green-975-galvanized.jpg 24" Wilcox LED, 307-Emerald Green, Mounting in 975-Galvanized, Hang Straight Canopy 1000 1000 76111
63879 65527 product 0 76112 A 0 D 0 0 Wilcox-LED-stem-24in-400-barn-red.jpg 24" Wilcox LED, 400-Barn Red 1000 1000 76112
63880 65527 product 0 76113 A 0 D 0 0 Wilcox-LED-stem-24in-705-navy.jpg 24" Wilcox LED, 705-Navy 1000 1000 76113
63883 65525 product 0 76116 A 0 D 0 0 dbw24-100-black-csbp_fv5e-xb.jpg 24" Wilcox LED, 100-Black, CSBP-Black & Pink Cloth Cord 1000 1000 76116
63884 65525 product 0 76117 A 0 D 0 0 dbw24-400-barn-red-csbw-LED.jpg 24" Wilcox LED, 400-Barn Red, CSBW-Black & White Cloth Cord 1000 1000 76117
63885 65525 product 0 76118 A 0 D 0 0 wilcox-cord-24in-705-Navy-cloth-cord.jpg 24" Wilcox LED, 705-Navy, Navy Cloth Cord 1000 1000 76118
64022 65069 product 0 76255 A 0 D 0 0 marathon-chain-16in-705-Navy-CGG-RIB-CRD-Red-cord.jpg 16" Marathon Nautical LED, 705-Navy, CGG-Standard Cast Guard, RIB-Ribbed Glass, TRD-Red Cloth Cord 1000 1000 76255
64023 65069 product 0 76256 A 0 D 0 0 marathon-chain-16in-975-galvanized-CSB-CGG-FST-100-black.jpg 16" Marathon Nautical LED, 975-Galvanized, CGG-Standard Cast Guard, 100-Black, FST-Frosted Glass, Mounting in 100-Black, CSB-Black Cloth Cord 1000 1000 76256
68600 65525 product 0 80833 A 0 C 0 0 Image-commercial-interior-lighting-on-conference-room-Wilcox-LED-Deep-Bowl-Pendant-24in-106-Matte-Black-CMG-Grey-Cloth-Cord-Domed-Lens.jpg 24" Wilcox LED, 106-Matte Black, CMG-Grey Cloth Cord, Domed Lens | Photo Courtesy of Customer 2000 1501 80833
50902 65005 product 0 63135 A 1 D 0 0 Dino-chain-12in-997-raw-brass-975-galvanized-CSGW.jpg 12" Dino LED, 997-Natural Raw Brass, Mounting in 975-Galvanized, CSGW-Gold & White Cloth Cord 1000 1000 63135
61725 65429 product 0 73958 A 1 D 0 0 Original-Flush-Mount-LED-24in-705-navy.jpg 24" The Original™ LED Flush Mount, 705-Navy 1000 1000 73958
62906 65037 product 0 75139 A 1 D 0 0 Avalon-chain-14in-200-white-CSW-WCC-FST.jpg 14" Avalon Nautical LED, 200-White, WGG-Wire Guard, FST-Frosted Glass 1000 1000 75139
64406 65064 product 0 76639 A 1 D 0 0 sterling-chain-16in-100-black-CGG-FST.jpg 16" Sterling Nautical LED, 100-Black, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 76639
67193 65122 product 0 79426 A 1 D 0 0 Touchdown-Chain-Hung-16inch-Jadite-Black-White-Chevron-Cord-Frosted-Glass.jpg 16" Touchdown, 355-Porcelain Jadite, CSBW-Black & White Cloth Cord, FST-Frosted Glass 1000 1000 79426
51268 65037 product 0 63501 A 2 D 0 0 avalon-chain-16in-997-raw-brass-975-galvanized-csgw-tgg-rib.jpg 16" Avalon Nautical LED, 997-Natural Raw Brass, Mounting in 975-Galvanized, TGG-Heavy Duty Cast Guard, 975-Galvanized, RIB-Ribbed Glass, CSGW-Gold & White Cloth Cord 800 800 63501
60174 65429 product 0 72407 A 2 D 0 0 Original-Flush-Mount-LED-16in-industrial-grey.jpg 16" The Original™ LED Flush Mount, 800-Industrial Grey, Wire Cage, 975-Galvanized 1000 1000 72407
61823 65443 product 0 74056 A 2 D 0 0 original-flush-mount-28in-975-galvanized-400-barn-red-tgg-rib.jpg 28" The Original™ Nautical LED Flush Mount, 975-Galvanized, TGG-Heavy Duty Cast Guard, 400-Barn Red, RIB-Ribbed Glass, Mounting in 400-Barn Red 1000 1000 74056
63358 65005 product 0 75591 A 2 D 0 0 Dino-LED-full-build-chain-12in-307-emerald-green.jpg 12" Dino LED, 307-Emerald Green, SBK-Standard Black Cord 1000 1000 75591
64408 65064 product 0 76641 A 2 D 0 0 sterling-chain-16in-307-emerald-975-galvanized-CSBG-CGG-RIB.jpg 16" Sterling Nautical LED, 307-Emerald Green, CGG-Standard Cast Guard, 975-Galvanized, RIB-Ribbed Glass, CSBG-Black & Gold Cloth Cord 1000 1000 76641
67191 65122 product 0 79424 A 2 D 0 0 Knockout-Chain-Hung-16inch-Navy-White-White-Blue-Chevron-Cord-Frosted-Glass.jpg 16" Touchdown, 705-Navy, Heat Sink in 200-White, Mounting in 200-White, CSUW-Blue & White Cloth Cord, FST-Frosted Glass 1000 1000 79424
67194 65122 product 0 79427 A 2 D 0 0 Knockout-Chain-Hung-12inch-White-Barn-Red-Red-White-Chevron-Cord-Frosted.jpg 12" Touchdown, 200-White, Heat Sink in 400-Barn Red, Mounting in 400-Barn Red, CRZ-Red Chevron Cord, FST-Frosted Glass 1000 1000 79427
50903 65005 product 0 63136 A 3 D 0 0 Dino-chain-14in-100-black-WC-SBK.jpg 14" Dino LED, 100-Black, Wire Cage, SBK-Standard Black Cord 1000 1000 63136
60172 65429 product 0 72405 A 3 D 0 0 Original-Flush-Mount-LED-28in-royal-blue.jpg 28" The Original™ LED Flush Mount, 700-Royal Blue 1000 1000 72405
67590 65443 product 0 79823 A 3 C 0 0 IMG_1595-residential-interior-lighting-barn-Original-Nautical-LED-Flush-Mount-Light-12in-995-Raw-Copper-975-Galvanized-TGG-Clear-Glass.jpg 12" The Original™ Nautical LED Flush Mount, 995-Raw Copper, 975-Galvanized, Heavy Cast Guard, Clear Glass | Customer Submission 1850 1528 79823
50904 65005 product 0 63137 A 4 D 0 0 Dino-chain-14in-200-white-SWH.jpg 14" Dino LED, 200-White, SWH-Standard White Cord 1000 1000 63137
60170 65429 product 0 72403 A 4 D 0 0 Original-Flush-Mount-LED-24in-390-teal.jpg 24" The Original™ LED Flush Mount, 390-Teal 1000 1000 72403
67591 65443 product 0 79824 A 4 C 0 0 IMG_1596-residential-interior-lighting-barn-Original-Nautical-LED-Flush-Mount-Light-12in-995-Raw-Copper-975-Galvanized-TGG-Clear-Glass.jpg 12" The Original™ Nautical LED Flush Mount, 995-Raw Copper, 975-Galvanized, Heavy Cast Guard, Clear Glass | Customer Submission 2999 3241 79824
50905 65005 product 0 63138 A 5 D 0 0 Dino-chain-14in-365-jadite-SWH.jpg 14" Dino LED, 355-Porcelain Jadite, SWH-Standard White Cord 1000 1000 63138
60175 65429 product 0 72408 A 5 D 0 0 Original-Flush-Mount-LED-28in-emerald-green.jpg 28" The Original™ LED Flush Mount, 307-Emerald Green 1000 1000 72408
66441 65443 product 0 78674 A 5 C 0 0 IMG_5085-residential-interior-lighting-on-bathroom-Original-Nautical-LED-Flush-Mount-16in-106-Matte-Black-TGG-Clear-Glass.jpeg 16" The Original™ Nautical LED Flush Mount, 106-Matte Black, Heavy Cast Guard, Clear Glass | Customer Submission 4032 3024 78674
63357 65005 product 0 75590 A 6 D 0 0 Dino-chain-14in-975-galvanized-100-black-CSBG.jpg 14" Dino LED, 975-Galvanized, Mounting in 100-Black, CSBG-Black & Gold Cloth Cord 1000 1000 75590
68123 65429 product 0 80356 A 6 C 0 0 DSC01416.jpg 16" The Original™ LED Flush Mount, 996-Weathered Copper, Flat Lens | Photo Courtesy of Power Design Inc. 9504 6336 80356
50906 65005 product 0 63139 A 7 D 0 0 Dino-chain-14in-700-Royal-Blue-975-Galvanized-CSUW.jpg 14" Dino LED, 700-Royal Blue, Mounting in 975-Galvanized, CSUW-Blue & White Cloth Cord 1000 1000 63139