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 (
    65626, 65466, 65803, 65564, 65459, 65469, 
    65468, 65814, 65815, 65720, 65732, 
    65479
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00127

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": 83,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (65626,65466,65803,65564,65459,65469,65468,65814,65815,65720,65732,65479)"
        }
      }
    },
    "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
59168 65459 product 0 71401 A 0 D 0 0 Galvanized-wilcox.jpg 14" Wilcox Uplight Flush Mount, 975-Galvanized 1000 1000 71401
63209 65564 product 0 75442 A 0 D 0 0 Ellington-Flush-Mount-12in-480-blush-pink-200-white.jpg 12" Ellington Flush Mount, 480-Blush Pink, Mounting in 200-White, Shown with Nostalgic Edison 40W Spiral Light Bulb 1000 1000 75442
64277 65564 product 0 76510 A 0 D 0 0 Ellington-Flush-Mount-12in-705-navy.jpg 12" Ellington Flush Mount, 705-Navy, Shown with Nostalgic Edison-Style 1910 Era 60 Watt Light Bulb 1000 1000 76510
64278 65564 product 0 76511 A 0 D 0 0 Ellington-Flush-Mount-16in-400-barn-red-100-black-disk_ygce-h3.jpg 16" Ellington Flush Mount, 100-Black, Cup & Mounting in 400-Barn Red, Shown with Nostalgic Edison-Style Victorian 25 Watt Light Bulb 1000 1000 76511
64279 65564 product 0 76512 A 0 D 0 0 Ellington-Flush-Mount-8in-307-Emerald-green_prmx-22.jpg 8" Ellington Flush Mount, 307-Emerald Green, Shown with Globe LED Tala Lamp 1000 1000 76512
66529 65466 product 0 78762 A 0 D 0 0 Bridgeport-flush-mount-16in-975-galvanized-CGG-FST-alt.jpg 16" Bridgeport, 975-Galvanized, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 78762
66530 65466 product 0 78763 A 0 D 0 0 Bridgeport-flush-mount-12in-300-dark-green-CGG-RIB-alt.jpg 12" Bridgeport, 300-Dark Green, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 78763
66531 65466 product 0 78764 A 0 D 0 0 Bridgeport-flush-mount-12in-490-magenta-100-black-WGG-RIB-alt.jpg 12" Bridgeport, 490-Magenta, WGG-Wire Guard, 100-Black, RIB-Ribbed Glass, Mounting in 100-Black 1000 1000 78764
66532 65466 product 0 78765 A 0 D 0 0 Bridgeport-flush-mount-12in-700-royal-blue-200-white-CGG-RIB-alt.jpg 12" Bridgeport, 700-Royal Blue, CGG-Standard Cast Guard, RIB-Ribbed Glass, Mounting in 200-White 1000 1000 78765
66533 65466 product 0 78766 A 0 D 0 0 Bridgeport-flush-mount-14in-200-white-CGG-RIB-alt.jpg 14" Bridgeport, 200-White, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 78766
66534 65466 product 0 78767 A 0 D 0 0 Bridgeport-flush-mount-16in-100-black-TGG-FST-alt.jpg 16" Bridgeport, 100-Black, TGG-Heavy Duty Cast Guard, FST-Frosted Glass 1000 1000 78767
66535 65466 product 0 78768 A 0 D 0 0 Bridgeport-flush-mount-16in-400-barn-red-CGG-FST-alt.jpg 16" Bridgeport, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 78768
66582 65479 product 0 78815 A 0 D 0 0 cleveland-flush-mount-14in-307-emerald-green-975-galvanized-CGG-RIB-alt_1flm-3x.jpg 14" Cleveland LED, 307-Emerald Green, CGG-Standard Cast Guard, RIB-Ribbed Glass, Mounting in 975-Galvanized 1000 1000 78815
66591 65468 product 0 78824 A 0 D 0 0 cleveland-flush-mount-14in-705-navy-490-magenta-975-galvanized-CGG-RIB-alt.jpg 14" Cleveland, 705-Navy, CGG-Standard Cast Guard, 490-Magenta, RIB-Ribbed, Mounting in 975-Galvanized 1000 1000 78824
66857 65469 product 0 79090 A 0 D 0 0 syracuse-flush-12in-500-buttery-yellow-975-galvanized-CGG-RIB.jpg 12" Syracuse, 500-Buttery Yellow, Mounting in 975-Galvanized, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 79090
68052 65732 product 0 80285 A 0 D 0 0 Avalon-42in-Stem-500-buttery-yellow975-galvanized.jpg 42" Avalon, 500-Buttery Yellow, Mounting in 975-Galvanized 1000 1000 80285
68569 65720 product 0 80802 A 0 D 0 0 Parabolic-Adjustable-Sconce-311-jadite.jpg Parabolic Wall Sconce, 311-Jadite 1000 1000 80802
69275 65803 product 0 81508 A 0 D 0 0 Laramie-studio-pendant-30in-100-black-red-cloth-cord-400-barn-red-standard-guard-clear-glass.jpg 30" Laramie, 100-Black, CGG-Standard Cast Guard, 400-Barn Red, CLR-Clear Glass, CSR-Red Cloth Cord 1000 1000 81508
69348 65814 product 0 81581 A 0 D 0 0 Chestnut-studio-pendant-30in-200-white-black-cloth-cord.jpg 30" Chestnut, 200-White, CSB-Black Cloth Cord 1000 1000 81581
69397 65815 product 0 81630 A 0 D 0 0 Chestnut-stem-pendant-30in-100-black-400-barn-red-standard-guard-clear-glass.jpg 30" Chestnut, 100-Black, CGG-Standard Cast Guard, 400-Barn Red, CLR-Clear Glass 1000 1000 81630
59172 65459 product 0 71405 A 1 D 0 0 Royal-Blue-wilcox.jpg 12" Wilcox Uplight Flush Mount, 700-Royal Blue, Mounting in 975-Galvanized 1000 1000 71405
66581 65479 product 0 78814 A 1 D 0 0 cleveland-flush-mount-12in-100-black-TGG-FST-alt_usbk-yv.jpg 12" Cleveland LED, 100-Black, TGG-Heavy Duty Cast Guard, FST-Frosted Glass 1000 1000 78814
66592 65468 product 0 78825 A 1 D 0 0 cleveland-flush-mount-14in-975-galvanized-TGG-FST-alt.jpg 14" Cleveland, 975-Galvanized, TGG-Heavy Duty Cast Guard, FST-Frosted Glass 1000 1000 78825
66862 65469 product 0 79095 A 1 D 0 0 syracuse-flush-mount-18in-100-black-CGG-FST.jpg 18" Syracuse, 100-Black, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 79095
68047 65732 product 0 80280 A 1 D 0 0 Avalon-42in-Stem-100-black-full-build.jpg 42" Avalon, 100-Black 1000 1000 80280
68566 65720 product 0 80799 A 1 D 0 0 Parabolic-Adjustable-Sconce-100-black-with-arm.jpg Parabolic Wall Sconce, 100-Black, Extended Arm 1000 1000 80799
69273 65803 product 0 81506 A 1 D 0 0 Laramie-studio-pendant-30in-full-build-311-jadite-black-and-white-cloth-cord.jpg 30" Laramie, 311-Jadite, CSBW-Black & White Cloth Cord 1000 1000 81506
69353 65814 product 0 81586 A 1 D 0 0 Chestnut-studio-pendant-30in-full-build-311-jadite-black-and-white-cloth-cord.jpg 30" Chestnut, 311-Jadite, CSBW-Black & White Cloth Cord 1000 1000 81586
69403 65815 product 0 81636 A 1 D 0 0 Chestnut-stem-pendant-30in-full-build-311-jadite.jpg 30" Chestnut, 311-Jadite 1000 1000 81636
59169 65459 product 0 71402 A 2 D 0 0 Bronze-wilcox.jpg 16" Wilcox Uplight Flush Mount, 600-Bronze, Mounting in 975-Galvanized 1000 1000 71402
63211 65564 product 0 75444 A 2 D 0 0 Ellington-Flush-Mount-8in-715-delphite.jpg 8" Ellington Flush Mount, 715-Delphite, Shown with Nostalgic Edison-Style Victorian 25 Watt Light Bulb 1000 1000 75444
66587 65479 product 0 78820 A 2 D 0 0 cleveland-flush-mount-112in-400-barn-red-CGG-FST-alt_38nm-yf.jpg 12" Cleveland LED, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 78820
66589 65468 product 0 78822 A 2 D 0 0 cleveland-flush-mount-12in-100-black-TGG-FST-alt.jpg 12" Cleveland, 100-Black, TGG-Heavy Duty Cast Guard, FST-Frosted Glass 1000 1000 78822
66860 65469 product 0 79093 A 2 D 0 0 syracuse-flush-mount-16in-350-vintage-green-975-galvanized-WGG-FST.jpg 16" Syracuse, 350-Porcelain Vintage Green, Mounting in 975-Galvanized, WGG-Wire Guard, FST-Frosted Glass 1000 1000 79093
68051 65732 product 0 80284 A 2 D 0 0 Avalon-42in-Stem-490-magenta-100-black.jpg 42" Avalon, 490-Magenta, Mounting in 100-Black 1000 1000 80284
68567 65720 product 0 80800 A 2 D 0 0 Parabolic-Adjustable-Sconce-200-white-with-arm.jpg Parabolic Wall Sconce, 200-White, Extended Arm 1000 1000 80800
69274 65803 product 0 81507 A 2 D 0 0 Laramie-studio-pendant-30in-200-white-black-cloth-cord-100-black-standard-guard-ribbed-glass.jpg 30" Laramie, 200-White, CGG-Standard Cast Guard, 100-Black, RIB-Ribbed Glass, CSB-Black Cloth Cord 1000 1000 81507
69350 65814 product 0 81583 A 2 D 0 0 Chestnut-studio-pendant-30in-500-buttery-yellow-black-white-cloth-cord-standard-guard-ribbed-glass.jpg 30" Chestnut, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSBG-Black & Gold Cloth Cord 1000 1000 81583
69400 65815 product 0 81633 A 2 D 0 0 Chestnut-stem-pendant-30in-500-buttery-yellow-standard-guard-ribbed-glass.jpg 30" Chestnut, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 81633
59170 65459 product 0 71403 A 3 D 0 0 Red-wilcox.jpg 12" Wilcox Uplight Flush Mount, 400-Barn Red, Wire Cage, 975-Galvanized, Mounting in 975-Galvanized 1000 1000 71403
66584 65479 product 0 78817 A 3 D 0 0 cleveland-flush-mount-14in-975-galvanized-TGG-FST-alt_2sqz-83.jpg 14" Cleveland LED, 975-Galvanized, TGG-Heavy Duty Cast Guard, FST-Frosted Glass 1000 1000 78817
66590 65468 product 0 78823 A 3 D 0 0 cleveland-flush-mount-14in-307-emerald-green-975-galvanized-CGG-RIB-alt.jpg 14" Cleveland, 307-Emerald Green, CGG-Standard Cast Guard, RIB-Ribbed Glass, Mounting in 975-Galvanized 1000 1000 78823
66858 65469 product 0 79091 A 3 D 0 0 syracuse-flush-mount-14in-400-barn-red-CGG-FST.jpg 14" Syracuse, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 79091
68048 65732 product 0 80281 A 3 D 0 0 Avalon-42in-Stem-200-white.jpg 42" Avalon, 200-White 1000 1000 80281
68572 65720 product 0 80805 A 3 D 0 0 Parabolic-Adjustable-Sconce-975-galvanized.jpg Parabolic Adjustable Sconce, 975-Galvanized 1000 1000 80805
69276 65803 product 0 81509 A 3 D 0 0 Laramie-studio-pendant-30in-390-teal-white-cloth-cord.jpg 30" Laramie, 390-Teal, CSW-White Cloth Cord 1000 1000 81509
69349 65814 product 0 81582 A 3 D 0 0 Chestnut-studio-pendant-30in-390-teal-white-cloth-cord.jpg 30" Chestnut, 390-Teal, CSW-White Cloth Cord 1000 1000 81582
69398 65815 product 0 81631 A 3 D 0 0 Chestnut-stem-pendant-30in-300-dark-green-100-black.jpg 30" Chestnut, 300-Dark Green, Mounting in 100-Black 1000 1000 81631
59171 65459 product 0 71404 A 4 D 0 0 Dark-Green-wilcox.jpg 14" Wilcox Uplight Flush Mount, 300-Dark Green, Mounting in 975-Galvanized 1000 1000 71404
63210 65564 product 0 75443 A 4 D 0 0 Ellington-Flush-Mount-6in-600-bronze_1a9g-ao.jpg 6" Ellington Flush Mount, 600-Bronze, Shown with Nostalgic Edison 40 Watt Thread Light Bulb 1000 1000 75443
66586 65479 product 0 78819 A 4 D 0 0 cleveland-flush-mount-16in-500-buttery-yellow-CGG-RIB-alt_hb01-9c.jpg 16" Cleveland LED, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 78819
66595 65468 product 0 78828 A 4 D 0 0 cleveland-flush-mount-112in-400-barn-red-CGG-FST-alt.jpg 12" Cleveland, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 78828
66856 65469 product 0 79089 A 4 D 0 0 syracuse-flush-12in-200-white-CGG-FST.jpg 12" Syracuse, 200-White, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 79089
68049 65732 product 0 80282 A 4 D 0 0 Avalon-42in-Stem-307-emerald-green.jpg 42" Avalon, 307-Emerald Green 1000 1000 80282
68570 65720 product 0 80803 A 4 D 0 0 Parabolic-Adjustable-Sconce-390-teal-with-arm.jpg Parabolic Wall Sconce, 390-Teal, Extended Arm 1000 1000 80803
69286 65803 product 0 81519 A 4 D 0 0 Laramie-studio-pendant-30in-300-dark-green-black-brown-chevron-cord.jpg 30" Laramie, 300-Dark Green, CSBB-Black & Brown Cloth Cord 1000 1000 81519
69347 65814 product 0 81580 A 4 D 0 0 Chestnut-studio-pendant-30in-100-black-red-cloth-cord-400-barn-red-standard-guard-clear-glass.jpg 30" Chestnut, 100-Black, CGG-Standard Cast Guard, 400-Barn Red, CLR-Clear Glass, CSR-Red Cloth Cord 1000 1000 81580
69399 65815 product 0 81632 A 4 D 0 0 Chestnut-stem-pendant-30in-390-teal.jpg 30" Chestnut, 390-Teal 1000 1000 81632
66583 65479 product 0 78816 A 5 D 0 0 cleveland-flush-mount-14in-705-navy-490-magenta-975-galvanized-CGG-RIB-alt_quco-dn.jpg 14" Cleveland LED, 705-Navy, CGG-Standard Cast Guard, 490-Magenta, RIB-Ribbed Glass, Mounting in 975-Galvanized 1000 1000 78816
66594 65468 product 0 78827 A 5 D 0 0 cleveland-flush-mount-16in-800-industrial-grey-100-black-CGG-FST-alt.jpg 16" Cleveland, 800-Industrial Grey, CGG-Standard Cast Guard, 100-Black, FST-Frosted Glass, Mounting in 100-Black 1000 1000 78827
66859 65469 product 0 79092 A 5 D 0 0 syracuse-flush-mount-14in-700-royal-blue-CGG-RIB_laz8-ip.jpg 14" Syracuse, 700-Royal Blue, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 79092
68053 65732 product 0 80286 A 5 D 0 0 Avalon-42in-Stem-975-galvanized.jpg 42" Avalon, 975-Galvanized 1000 1000 80286
68568 65720 product 0 80801 A 5 D 0 0 Parabolic-Adjustable-Sconce-300-dark-green-with-arm.jpg Parabolic Wall Sconce, 300-Dark Green, Extended Arm 1000 1000 80801
69272 65803 product 0 81505 A 5 D 0 0 Laramie-studio-pendant-30in-975-galvanized-gold-and-white-cloth-cord-heavy-duty-guard-ribbed-glass.jpg 30" Laramie, 975-Galvanized, CSGW-Gold & White Cloth Cord, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass 1000 1000 81505
69352 65814 product 0 81585 A 5 D 0 0 Chestnut-studio-pendant-30in-975-galvanized-gold-and-white-cloth-cord-heavy-duty-guard-ribbed-glass.jpg 30" Chestnut, 975-Galvanized, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass, CSGW-Gold & White Cloth Cord 1000 1000 81585
69402 65815 product 0 81635 A 5 D 0 0 Chestnut-stem-pendant-30in-975-galvanized-heavy-duty-guard-ribbed-glass.jpg 30" Chestnut, 975-Galvanized, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass 1000 1000 81635
64276 65564 product 0 76509 A 6 D 0 0 Ellington-Flush-Mount-12in-200-white.jpg 12" Ellington Flush Mount, 200-White, Shown with Nostalgic Edison-Style 1910 Era 40 Watt Light Bulb 1000 1000 76509
66585 65479 product 0 78818 A 6 D 0 0 cleveland-flush-mount-16in-200-white-100-black-WGG-FST-alt_pwyp-vm.jpg 16" Cleveland LED, 200-White, WGG-Wire Guard, 100-Black, FST-Frosted Glass, Mounting in 100-Black 1000 1000 78818
66593 65468 product 0 78826 A 6 D 0 0 cleveland-flush-mount-16in-500-buttery-yellow-CGG-RIB-alt.jpg 16" Cleveland, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 78826
66861 65469 product 0 79094 A 6 D 0 0 syracuse-flush-mount-16in-975-galvanized-TGG-RIB.jpg 16" Syracuse, 975-Galvanized, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass 1000 1000 79094
68050 65732 product 0 80283 A 6 D 0 0 Avalon-42in-Stem-400-barn-red.jpg 42" Avalon, 400-Barn Red 1000 1000 80283
68571 65720 product 0 80804 A 6 D 0 0 Parabolic-Adjustable-Sconce-500-buttery-yellow-with-arm.jpg Parabolic Wall Sconce, 500-Buttery Yellow, Extended Arm 1000 1000 80804
69277 65803 product 0 81510 A 6 D 0 0 Laramie-studio-pendant-30in-705-navy-blue-and-white-cloth-cord.jpg 30" Laramie, 705-Navy, CSUW-Blue & White Cloth Cord 1000 1000 81510
69351 65814 product 0 81584 A 6 D 0 0 Chestnut-studio-pendant-30in-705-navy-blue-and-white-cloth-cord.jpg 30" Chestnut, 705-Navy, CSUW-Blue & White Cloth Cord 1000 1000 81584
69401 65815 product 0 81634 A 6 D 0 0 Chestnut-stem-pendant-30in-705-navy.jpg 30" Chestnut, 705-Navy 1000 1000 81634
66863 65469 product 0 79096 A 7 D 0 0 syracuse-flush-mount-18in-705-navy-490-magenta-CGG-RIB.jpg 18" Syracuse, 705-Navy, Mounting in 490-Magenta, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 79096
68130 65732 product 0 80363 A 7 C 0 0 avalon-oversized-stem-pendant-42in-100-black-residential-interior-dining-room-table-vaulted-ceilings-pet-dog-alt.jpg 42" Avalon, 100-Black 1500 2250 80363
68561 65720 product 0 80794 A 7 C 0 0 parabolic-adjustable-sconce-2h-media-8347XC8T988-unsplash.jpg Parabolic Wall Sconce, 420-Orange, Extended Arm 1500 2250 80794
69422 65732 product 0 81655 A 7 C 0 0 oversized-avalon.jpg 42" Avalon, 100-Black | Photo Courtesy of Customer 1458 964 81655
68562 65720 product 0 80795 A 8 C 0 0 parabolic-adjustable-sconce-AdobeStock_238073649.jpg Parabolic Wall Sconce, 975-Galvanized 1500 2249 80795
68584 65720 product 0 80817 A 9 C 0 0 Detail-1_z1kc-td.jpg 1000 1000 80817
68585 65720 product 0 80818 A 10 C 0 0 Detail-2_h8u1-3j.jpg 1000 1000 80818