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 (62165, 62433, 62582, 62431) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00111

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": 46,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (62165,62433,62582,62431)"
        }
      }
    },
    "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
20272 62165 product 0 32088 A 0 D 0 0 Wallaby-stem-16in-997-raw-brass-200-white-RIB.jpg 16" Wallaby, 997-Natural Raw Brass, With Cap Option, Guard in 200-White, Mounting in 997-Natural Raw Brass, Decorative Canopy Cover 1000 1000 32088
21652 62431 product 0 33533 A 0 D 0 0 cherokee-stem-16in-600-bronze.jpg 16" Cherokee LED, 600-Bronze, FST-Frosted Glass 1000 1000 33533
21695 62433 product 0 33577 A 0 D 0 0 uplight-16-inch-stem_mount-975-galvanized.jpg 16" Wilcox Uplight, 975-Galvanized, 18" Stem 600 600 33577
22167 62582 product 0 34059 A 0 D 0 0 outback-stem-12in-997-raw-brass-200-white-TGG-RIB-decorative.jpg 12" Outback, 997-Natural Raw Brass, With Cap Option, Guard in 200-White, RIB-Ribbed Glass, Decorative Canopy Cover 1000 1000 34059
20273 62165 product 0 32089 A 1 D 0 0 Wallaby-stem-14in-barn-red-RIB.jpg 14" Wallaby, 400-Barn Red, RIB-Ribbed Glass 1000 1000 32089
21697 62433 product 0 33579 A 1 D 0 0 uplight-14-inch-stem_mount-400-red_wire-cage.jpg 14" Wilcox Uplight, 400-Barn Red, 6" Stem, Wire Cage in 975-Galvanized 600 600 33579
29846 62431 product 0 42069 A 1 D 0 0 cherokee-stem-14in-Barn-Red.jpg 14" Cherokee LED, 400-Barn Red, FST-Frosted Glass 1000 1000 42069
66756 62582 product 0 78989 A 1 D 0 0 outback-stem-20in-307-emerald-green-TGG-FST.jpg 20" Outback, 307-Emerald Green, FST-Frosted Glass 1000 1000 78989
29844 62431 product 0 42067 A 2 D 0 0 cherokee-stem-16in-975-galvanized-HSC_h8lc-vr.jpg 16" Cherokee LED, 975-Galvanized, FST-Frosted Glass, Hang Straight Canopy 1000 1000 42067
47881 62433 product 0 60114 A 2 D 0 0 Wilcox-Uplight-White-Black-Stem.jpg 14" Wilcox Uplight, 200-White, 12" Stem, 100-Black Mounting Finish, Standard Canopy 1000 1000 60114
66755 62582 product 0 78988 A 2 D 0 0 outback-stem-18in-100-black-TGG-RIB-Heavy-Duty.jpg 18" Outback, 100-Black, RIB-Ribbed Glass, Heavy Duty Canopy 1000 1000 78988
21696 62433 product 0 33578 A 3 D 0 0 uplight-12-inch-stem_mount-105-navy.jpg 12" Wilcox Uplight, 705-Navy, 6" Stem 600 600 33578
29843 62431 product 0 42066 A 3 D 0 0 cherokee-stem-14in-307-emerald-green.jpg 14" Cherokee LED, 307-Emerald Green, FST-Frosted Glass 1000 1000 42066
66163 62165 product 0 78396 A 3 D 0 0 Wallaby-stem-16in-100-black-500-buttery-yellow-TGG-RIB.jpg 16" Wallaby, 100-Black, Guard in 500-Buttery Yellow, RIB-Ribbed Glass, Heavy Duty Stem Mount Canopy, Mounting in 100-Black 1000 1000 78396
66757 62582 product 0 78990 A 3 D 0 0 outback-stem-20in-700-royal-blue-975-galvanized-TGG-RIB-HSC.jpg 20" Outback, 700-Royal Blue, Guard in 975-Galvanized, RIB-Ribbed Glass, Hang Straight Canopy, Mounting in 975-Galvanized 1000 1000 78990
21699 62433 product 0 33581 A 4 D 0 0 uplight-12-inch-stem_mount-100-black.jpg 12" Wilcox Uplight, 100-Black, 12" Stem 600 600 33581
22169 62582 product 0 34061 A 4 D 0 0 outback-stem-12in-975-galvanized-400-barn-red-TGG-FST.jpg 12" Outback, 975-Galvanized, Guard in 400-Barn Red, FST-Frosted Glass 1000 1000 34061
22258 62431 product 0 34155 A 4 D 0 0 cherokee-stem-18in-100-black-Heavy-Duty_1iss-oh.jpg 18" Cherokee LED, 100-Black, FST-Frosted Glass, Heavy Duty Stem Mount Canopy 1000 1000 34155
66164 62165 product 0 78397 A 4 D 0 0 Wallaby-stem-12in-390-teal-CLR.jpg 12" Wallaby, 390-Teal, CLR-Clear Glass 1000 1000 78397
21698 62433 product 0 33580 A 5 D 0 0 uplight-18-inch-stem_mount-600-bronze.jpg 18" Wilcox Uplight, 600-Bronze, 12" Stem 600 600 33580
22256 62431 product 0 34153 A 5 D 0 0 cherokee-stem-12in-200-white.jpg 12" Cherokee LED, 200-White, FST-Frosted Glass 1000 1000 34153
66165 62165 product 0 78398 A 5 D 0 0 Wallaby-stem-16in-480-blush-pink-490-magenta-CLR.jpg 16" Wallaby, 480-Blush Pink, Guard in 490-Magenta, CLR-Clear Glass, Mounting in 480-Blush Pink 1000 1000 78398
66754 62582 product 0 78987 A 5 D 0 0 outback-stem-16in-400-barn-red-TGG-FST.jpg 16" Outback, 400-Barn Red, FST-Frosted Glass 1000 1000 78987
21801 62433 product 0 33683 A 6 D 0 0 uplight-14_-inch-stem_mount-200-white_wire-cage.jpg 14" Wilcox Uplight, 200-White, 6" Stem, Wire Cage in 975-Galvanized 600 600 33683
22171 62582 product 0 34063 A 6 D 0 0 outback-stem-14in-200-white-TGG-RIB.jpg 14" Outback, 200-White, RIB-Ribbed Glass 1000 1000 34063
29841 62431 product 0 42064 A 6 D 0 0 cherokee-stem-18in-705-navy.jpg 18" Cherokee LED, 705-Navy, FST-Frosted Glass 1000 1000 42064
65621 62431 product 0 77854 A 6 C 0 0 image1-residential-exterior-interior-lighting-barn-Cherokee-LED-Uplight-Stem-Mount-Pendant-14in-975-Galvanized-6in-stem-Clear-Glass.jpeg 14" Cherokee LED, 975-Galvanized, 6" Stem, Clear Glass | Customer Submission 4032 3024 77854
66166 62165 product 0 78399 A 6 D 0 0 Wallaby-stem-14in-975-galvanized-400-barn-red-RIB-HSC.jpg 14" Wallaby, 975-Galvanized, Guard in 400-Barn Red, RIB-Ribbed Glass, HSC-Hang Straight Canopy, Mounting in 975-Galvanized 1000 1000 78399
47882 62433 product 0 60115 A 7 D 0 0 Wilcox-Uplight-Barn-Red-Galvanized-Stem.jpg 14" Wilcox Uplight, 400-Barn Red, 12" Stem, Mounting Finish 975-Galvanized, Standard Canopy 1000 1000 60115
62194 62582 product 0 74427 A 7 C 0 0 Outback-Stem-mount-975-400-galvanized-barn-red.jpg 14" Outback, 975-Galvanized, Guard in 400-Barn Red, Mounting in 975-Galvanized 1500 1000 74427
66167 62165 product 0 78400 A 7 D 0 0 Wallaby-stem-12in-307-emerald-green-RIB.jpg 12" Wallaby, 307-Emerald Green, RIB-Ribbed Glass 1000 1000 78400
20621 62165 product 0 32448 A 8 C 0 0 wallaby-400-barn-red-tybee-island.jpg 12" Wallaby, 400-Barn Red with 975-Galvanized Guard, With Cap, CLR-Clear Glass 600 900 32448
63711 62433 product 0 75944 A 8 C 0 0 24-residential-interior-lighting-kitchen-wilcox-uplight-stem-mount-pendant-12in-975-Galvanized-24in-stem.jpg 12" Wilcox Uplight, 975-Galvanized, 24in Stem | Photo Courtesy of Honey and Ace 1440 1440 75944
64289 62582 product 0 76522 A 8 C 0 0 image4-residential-exterior-porch-entryway-Outback-Stem_Mount-Pendant-20in-995-Raw-Copper-36in-stem-106-Matte-Black-Cap-Guard-106-Matte-Black-Ribbed-Glass.jpeg 20" Outback, 995-Raw Copper, 36" stem, 106-Matte Black Cap Guard, 106-Matte Black, Ribbed Glass | Photo Courtesy of Homeowner 1477 1971 76522
55928 62582 product 0 68161 A 9 C 0 0 Barn_Light_Electric_-_Outback_Stem_Mount_Pendant_Light_Black_Red_Guard.jpg 12" Outback, 100-Black with 400-Barn Red Guard 1500 2000 68161
63710 62433 product 0 75943 A 9 C 0 0 residential-interior-lighting-kitchen-wilcox-uplight-stem-mount-pendant-12in-975-Galvanized-24in-stem.jpg 12" Wilcox Uplight, 975-Galvanized, 24in Stem | Photo Courtesy of Honey and Ace 1500 1953 75943
53590 62433 product 0 65823 A 10 C 0 0 wilcox_2light_vanity_10in_311_jadite2.jpg 14" Wilcox Uplight, 311-Jadite | Photo Courtesy of Houses and Barns by John Libby and Izzy Bouchard Photography 1500 1000 65823
59575 62582 product 0 71808 A 10 C 0 0 Outback_Stem_Mount_Pendant_Light_-_975_Galvanized_Barn_Light_Electric_-_Front_Porch_Halloween_Lighting.jpg 18” Outback, 975-Galvanized Shade, 100-Black Stem & Canopy Finish, With Cap, Heavy Duty Canopy, CGG-Standard Cast Guard in 100-Black, Clear Glass | Photo Courtesy of Melissa Ferre 1500 2159 71808
53591 62433 product 0 65824 A 11 C 0 0 wilcox_uplight_stem_mount_14in_311_jadite_.jpg 14" Wilcox Uplight, 311-Jadite | Photo Courtesy of Houses and Barns by John Libby and Izzy Bouchard Photography 1500 2250 65824
62195 62582 product 0 74428 A 11 C 0 0 Outback-Stem-mount-975-400-galvanized-barn-red_ott7-qr.jpg 14" Outback, 975-Galvanized, Guard in 400-Barn Red, Mounting in 975-Galvanized 1500 1328 74428
61842 62433 product 0 74075 A 12 C 0 0 Wilcox_Uplight_Stem_Mount_Pendant_-_100_Black_Barn_Light_Electric_-_Living_Room_Lighting.jpg 18” Wilcox Uplight, 100-Black, 48in Stem | Photo Courtesy of Caldera Design Build 1500 1978 74075
55440 62433 product 0 67673 A 13 C 0 0 RR-Early_Avery_Rafterhouse_wilcox_uplight_100_black_laundry.jpg 12” Wilcox Uplight, 100-Black, 12" Stem | Photo Courtesy of Early Avery - Rafterhouse and Roehner+Ryan 1500 2000 67673
47335 62433 product 0 59568 A 15 C 0 0 ceailing_pendant_lights.jpg (7) 14" Wilcox Uplights, 805-Charcoal Granite | Photo Courtesy of Büro 768 1024 59568
47836 62433 product 0 60069 A 16 C 0 0 Wilcox_Uplight_Stem_Mount_Pendant_-_Barn_Light_Electric_-_Office_Lighting.jpg (2) 14" Wilcox Uplights, 805-Charcoal Granite | Photo Courtesy of Büro 754 754 60069
25568 62433 product 0 37705 A 17 C 0 0 industrial_pendant_lighting-574x768.jpg (2) 14" Wilcox Uplights, 705-Navy, 36" Stem, Mounting Finish 200-White, Wire Cages in 975-Galvanized | Customer Submission 574 768 37705
61843 62433 product 0 74076 A 18 C 0 0 Wilcox_Uplight_Stem_Mount_-_100_Black_Barn_Light_Electric_-_Living_Room_Lighting.jpg 18” Wilcox Uplight, 100-Black, 48in Stem | Photo Courtesy of Caldera Design Build 1500 2250 74076