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 (65034, 64967, 64917, 64730) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00113

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": 47,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (65034,64967,64917,64730)"
        }
      }
    },
    "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
37368 64730 product 0 49601 A 0 D 0 0 avalon-stem-8in-765-delphite.jpg 8" Avalon, 765-Delphite 1000 1000 49601
46649 64917 product 0 58882 A 0 D 0 0 led-original-stem-18in-975-galvanized.jpg 18" The Original™ LED, 975-Galvanized 1000 1000 58882
62941 65034 product 0 75174 A 0 D 0 0 avalon-stem-16in-975-galvanized-CGG-FST.jpg 16" Avalon Nautical LED, 975-Galvanized, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 75174
46650 64917 product 0 58883 A 1 D 0 0 led-original-stem-24in-307-emerald-green.jpg 24" The Original™ LED, 307-Emerald Green 1000 1000 58883
51237 65034 product 0 63470 A 1 D 0 0 avalon-stem-12in-400-barn-red-100-CGG-FST.jpg 12" Avalon Nautical LED, 400-Barn Red, CGG-Standard Cast Guard, 100-Black, FST-Frosted Glass 1000 1000 63470
62928 64730 product 0 75161 A 1 D 0 0 avalon-stem-16in-975-galvanized.jpg 16" Avalon, 975-Galvanized 1000 1000 75161
63249 64967 product 0 75482 A 1 D 0 0 bomber-stem-LED-17in-975-galvanized.jpg 17" Bomber LED, 975-Galvanized 1000 1000 75482
37369 64730 product 0 49602 A 2 D 0 0 avalon-stem-12in-997-raw-brass.jpg 12" Avalon, 997-Natural Raw Brass 1000 1000 49602
49732 64967 product 0 61965 A 2 D 0 0 bomber-stem-LED-11in-999-oil-rubbed-copper-975-galvanized.jpg 11" Bomber LED, 999-Natural Oil-Rubbed Copper, Mounting in 975-Galvanized 1000 1000 61965
61874 64917 product 0 74107 A 2 D 0 0 led-original-stem-14in-705-navy.jpg 14" The Original™ LED, 705-Navy 1000 1000 74107
62940 65034 product 0 75173 A 2 D 0 0 avalon-stem-16in-700-royal-blue-975-galvanized-TGG_RIB.jpg 16" Avalon Nautical LED, 700-Royal Blue, TGG-Heavy Duty Cast Guard, 975-Galvanized, RIB-Ribbed Glass 1000 1000 75173
37370 64730 product 0 49603 A 3 D 0 0 avalon-stem-12in-navy-CGG-RIB.jpg 12" Avalon, 705-Navy, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 49603
49733 64967 product 0 61966 A 3 D 0 0 bomber-stem-LED-13in-300-dark-green.jpg 13" Bomber LED, 300-Dark Green 1000 1000 61966
61873 64917 product 0 74106 A 3 D 0 0 led-original-stem-28in-495-sherbert-orange.jpg 28" The Original™ LED, 495-Sherbet Orange, Mounting in 200-White 1000 1000 74106
37372 64730 product 0 49605 A 4 D 0 0 avalon-stem-14in-200-white.jpg 14" Avalon, 200-White 1000 1000 49605
61875 64917 product 0 74108 A 4 D 0 0 led-original-stem-18in-200-white.jpg 18" The Original™ LED, 200-White 1000 1000 74108
62939 65034 product 0 75172 A 4 D 0 0 avalon-stem-14in-200-white-WGG-FST.jpg 14" Avalon Nautical LED, 200-White, WGG-Wire Guard, FST-Frosted Glass 1000 1000 75172
63248 64967 product 0 75481 A 4 D 0 0 bomber-stem-LED-17in-570-Sunflower-100-black.jpg 17" Bomber LED, 570-Sunflower, Mounting in 100-Black 1000 1000 75481
37375 64730 product 0 49608 A 5 D 0 0 avalon-stem-14in-100-black-400-barn-red-WC.jpg 14" Avalon, 100-Black, Wire Cage, 400-Barn Red, Mounting in 400-Barn Red 1000 1000 49608
61876 64917 product 0 74109 A 5 D 0 0 led-original-stem-28in-311-jadite.jpg 28" The Original™ LED, 311-Jadite 1000 1000 74109
62938 65034 product 0 75171 A 5 D 0 0 avalon-stem-14in-100-black-400-barn-red-TGG-FST.jpg 14" Avalon Nautical LED, 100-Black, TGG-Heavy Duty Cast Guard, 400-Barn Red, FST-Frosted Glass, Mounting in 400-Barn Red 1000 1000 75171
37371 64730 product 0 49604 A 6 D 0 0 avalon-stem-10in-975-galvanized-HSC.jpg 10" Avalon, 975-Galvanized, Hang Straight Canopy 1000 1000 49604
63247 64967 product 0 75480 A 6 D 0 0 bomber-stem-LED-15in-705-Nacy-975-galvanized-WC.jpg 15" Bomber LED, 705-Navy, Wire Cage, 975-Galvanized, Mounting in 705-Navy 1000 1000 75480
61879 64917 product 0 74112 A 7 D 0 0 led-original-stem-24in-400-barn-red.jpg 24" The Original™ LED, 400-Barn Red 1000 1000 74112
67597 64967 product 0 79830 A 7 C 0 0 IMG_1610-residential-interior-lighting-chicken-coop-Bomber-LED-Stem-Mount-Pendant-15in-995-Raw-Copper-18in-stem-975-Galvanized-Flat-Lens.jpg 15" Bomber LED Stem Mount, 955-Raw Copper, 18" Stem, 975-Galvanized, Flat Lens | Customer Submission 3005 3516 79830
72699 64730 product 0 84932 A 7 D 0 0 Avalon-42in-Stem-100-black-full-build_29ly-gv.jpg 42" Avalon, 100-Black 1000 1000 84932
49372 64730 product 0 61605 A 8 D 0 0 avalon-stem-16in-390-teal.jpg 16" Avalon, 390-Teal 1000 1000 61605
67593 64917 product 0 79826 A 8 C 0 0 residential-interior-lighting-barn-ski-Original-LED-Stem-Mount-Pendant-18in-995-Raw-Copper-12in-stem-995-Raw-Copper-Flat-Lens.jpg 18" The Original™ LED Stem Mount, 995-Raw Copper, 18" Stem, 995-Raw Copper, Flat Lens | Customer Submission 1500 1823 79826
67598 64967 product 0 79831 A 8 C 0 0 IMG_1609-residential-interior-lighting-chicken-coop-Bomber-LED-Stem-Mount-Pendant-15in-995-Raw-Copper-18in-stem-975-Galvanized-Flat-Lens.jpg 15" Bomber LED Stem Mount, 955-Raw Copper, 18" Stem, 975-Galvanized, Flat Lens | Customer Submission 3024 4032 79831
37373 64730 product 0 49606 A 9 D 0 0 avalon-stem-12in-400-barn-red.jpg 12" Avalon, 400-Barn Red 1000 1000 49606
67592 64917 product 0 79825 A 9 C 0 0 residential-interior-lighting-on-barn-ski-Original-LED-Stem-Mount-Pendant-18in-995-Raw-Copper-18in-stem-995-Raw-Copper-Flat-Lens.jpg 18" The Original™ LED Stem Mount, 995-Raw Copper, 18" Stem, 995-Raw Copper, Flat Lens | Customer Submission 1500 1759 79825
49873 64967 product 0 62106 A 10 C 0 0 IMG_2893.JPG (3) 13” Bomber LED, 715-Delphite Blue, Mounting in 980-Brushed Aluminum, 36” Stem, Hang Straight LED Canopy | Photo Courtesy of Homeowner 2728 2715 62106
62927 64730 product 0 75160 A 10 D 0 0 avalon-stem-16in-700-royal-blue-975-galvanized.jpg 16" Avalon, 700-Royal Blue, Mounting in 980-Brushed Aluminum 1000 1000 75160
67594 64917 product 0 79827 A 10 C 0 0 residential-interior-lighting-barn-ski-Original-LED-Stem-Mount-Pendant-18in-995-Raw-Copper-12in-stem-995-Raw-Copper-Flat-Lens_k88n-s7.jpg 18" The Original™ LED Stem Mount, 995-Raw Copper, 18" Stem, 995-Raw Copper, Flat Lens | Customer Submission 1500 1581 79827
37377 64730 product 0 49610 A 11 C 0 0 ashland_stem_mount_12in_105_textured_black_24in_stem5.jpg 12" Avalon, 105-Textured Black, 24" Stem | Photo Courtesy of SBK Living 1500 2250 49610
67562 64917 product 0 79795 A 11 C 0 0 residential-interior-lighting-gym-Original-LED-Stem-Mount-Pendant-20in-500-Buttery-Yellow-12in-Stem-800-Industrial-Grey-Wire-Cage-800-Industrial-Grey-Flat-Lens_qf8m-87.jpg 20" The Original™ LED Stem Mount, 500-Buttery Yellow, 12" Stem, 800-Industrial Grey, Wire Cage, 800-Industrial Grey, Flat Lens | Customer Submission 1500 1714 79795
37379 64730 product 0 49612 A 12 C 0 0 ashland_stem_mount_12in_105_textured_black_24in_stem.jpg 12" Avalon, 105-Textured Black, 24" Stem | Photo Courtesy of SBK Living 1500 2250 49612
67563 64917 product 0 79796 A 12 C 0 0 residential-interior-lighting-gym-Original-LED-Stem-Mount-Pendant-20in-500-Buttery-Yellow-12in-Stem-800-Industrial-Grey-Wire-Cage-800-Industrial-Grey-Flat-Lens.jpg 20" The Original™ LED Stem Mount, 500-Buttery Yellow, 12" Stem, 800-Industrial Grey, Wire Cage, 800-Industrial Grey, Flat Lens | Customer Submission 1500 1375 79796
52614 64730 product 0 64847 A 13 C 0 0 ashland_stem_mount_12in_105_textured_black_24in_stem3.jpg 12" Avalon, 105-Textured Black, 24" Stem | | Photo Courtesy of SBK Living 1500 1000 64847
66842 64917 product 0 79075 A 13 C 0 0 commercial-interior-lighting-on-retail-Original-LED-Stem-Mount-Pendant-18in-370-Mint-6in-Stem-200-White-Flat-Lens-Life-Is-Good_890f-u5.jpg 18" The Original™ LED, 370-Mint, 6" Stem, 200-White, Flat Lens | Photo Courtesy of Life is Good 1500 1033 79075
64558 64730 product 0 76791 A 14 C 0 0 354B0184-commercial-exterior-Cowfish-restaurant-bar-avalon-stem-heavy-duty-canopy-500-buttery-yellow-975-galvanized-stem.jpg 8" Avalon, 500-Buttery Yellow, Heavy Duty Canopy, 975-Galvanized | Located at The Cowfish Restaurant in Universal 1500 2250 76791
66843 64917 product 0 79076 A 14 C 0 0 commercial-interior-lighting-on-retail-Original-LED-Stem-Mount-Pendant-18in-370-Mint-6in-Stem-200-White-Flat-Lens-Life-Is-Good.jpg 18" The Original™ LED, 370-Mint, 6" Stem, 200-White, Flat Lens | Photo Courtesy of Life is Good 1500 1999 79076
64557 64730 product 0 76790 A 15 C 0 0 2V3A0028-1-commercial-exterior-bar-grill-restaurant-avalon-stem-mount-heavy-duty-canopy-500-buttery-yellow-975-galvanized-stem.jpg 8" Avalon, 500-Buttery Yellow, Heavy Duty Canopy, 975-Galvanized | Located at The Cowfish Restaurant in Universal 1500 1022 76790
37378 64730 product 0 49611 A 16 C 0 0 barn_lighting_american_made-1024x768-768x576__1_.jpg 14" Avalon, 100-Black, 6" Stem, WC-Wire Cage, 975-Galvanized | Photo Courtesy of Customer 768 576 49611
61865 64730 product 0 74098 A 17 C 0 0 Avalon_Stem_Mount_Pendant_-_495_Sherbet_Orange_Barn_Light_Electric_-_Powder_Room_Lighting.jpg 10” Avalon, 495-Sherbet Orange, 24" Stem | | Photo Courtesy of MJG Interiors 1500 2000 74098
58940 64730 product 0 71173 A 18 C 0 0 Avalon_Stem_Mount_Pendant_Light_-_Barn_Light_Electric_-_Modern_Farmhouse_Laundry_Room_Lighting.png 12" Avalon, 105-Textured Black, 24" Stem | | Photo Courtesy of SBK Living 458 458 71173
60325 64730 product 0 72558 A 19 C 0 0 Avalon_Stem_Mount_Pendant_-_Barn_Light_Electric_-_Kitchen_Sink_Lighting.JPG 12" Avalon, 250-White, 24" Stem | | Photo Courtesy of Homeowner 1399 1980 72558