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 (64180, 64181, 64185, 65160) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00109

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": 40,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (64180,64181,64185,65160)"
        }
      }
    },
    "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
28932 64180 product 0 41152 A 0 D 0 0 astro-copper-single-post-mount-galvanized.jpg 14" Aero, 995-Natural Raw Copper, Single Post Mount, 975-Galvanized, Fluted Direct Burial Pole, 975-Galvanized 600 600 41152
28938 64181 product 0 41158 A 0 D 0 0 16-in-avalon-355-cherry-red-fluted-galvanized-pole.jpg 16" Avalon, 455-Porcelain Cherry Red, Single Decorative Post Mount, 975-Galvanized, Fluted Direct Burial Pole, 975-Galvanized 600 600 41158
28981 64185 product 0 41201 A 0 D 0 0 14-union-765-delphite-single-decorative-smooth-galv-pole.jpg 14" Union, 715-Delphite, Wire Cage, 975-Galvanized, Single Decorative Post Mount, 975-Galvanized, Smooth Direct Burial Pole, 975-Galvanized 600 600 41201
28991 64185 product 0 41211 A 0 D 0 0 union-brass-single-decorative-post-mount-galvanized145927341456fabec62cbf9.jpg 14" Union, 997-Natural Raw Brass, Single Decorative Post Mount, 975-Galvanized, Smooth Direct Burial Pole, 975-Galvanized 600 600 41211
28993 64185 product 0 41213 A 0 D 0 0 16-in-union-decorative-single-post-mount-455-cherry-red-2.jpg 16" Union, 400-Barn Red, Single Decorative Post Mount, Smooth Direct Burial Pole, 975-Galvanized 600 600 41213
53630 64185 product 0 65863 A 0 C 0 0 Union-16-Post-Mount-Light-Titusville-Splash-Park.jpg 16" Union, 550-Porcelain Yellow, Single Post Mount, Smooth Direct Burial Pole in 100-Black | Photo Courtesy of Titusville Splash Park 1500 2000 65863
65910 64185 product 0 78143 A 0 C 0 0 commercial-exterior-lighting-Union-Post-Mount-16in-705-Navy-CGG-975-Galvanized-Clear-Glass.jpg 16" Union, 705-Navy, Standard Cast Guard, 975-Galvanized, Clear Glass | Photo Courtesy of Coastal Heritage Society 1500 1987 78143
65912 64185 product 0 78145 A 0 C 0 0 commercial-exterior-lighting-on-Union-Post-Mount-16in-705-Navy-CGG-975-Galvanized-Clear-Glass.jpg 16" Union, 705-Navy, Standard Cast Guard, 975-Galvanized, Clear Glass | Photo Courtesy of Coastal Heritage Society 1500 2141 78145
65915 64185 product 0 78148 A 0 C 0 0 Icommercial-exterior-lighting-Union-Post-Mount-16in-705-Navy-CGG-975-Galvanized-Clear-Glass.jpg 16" Union, 705-Navy, Standard Cast Guard, 975-Galvanized, Clear Glass | Photo Courtesy of Coastal Heritage Society 1500 2251 78148
28933 64180 product 0 41153 A 1 D 0 0 16-in-aero-355-jadite-smooth-galv-pole.jpg 16" Aero, 311-Jadite, Single Decorative Post Mount, 975-Galvanized, Smooth Direct Burial Pole, 975-Galvanized 600 600 41153
28945 64181 product 0 41165 A 1 D 0 0 14-in-avalon-850-graphite-tgg-smooth-galv-pole.jpg 14" Avalon, 850-Porcelain Graphite, Heavy Duty Cast Guard & Frosted Glass, 850-Graphite, Single Post Mount, 975-Galvanized, Smooth Direct Burial Pole, 975-Galvanized 600 600 41165
28934 64180 product 0 41154 A 2 D 0 0 14-inch-aero-single-post-455-cherry-red-black_post.jpg 14" Aero, 400-Barn Red, Single Post Mount, 100-Black, Smooth Direct Burial Pole, 100-Black 600 600 41154
28946 64181 product 0 41166 A 2 D 0 0 avalon-copper-single-decorative-post-mount-black.jpg 14" Avalon, 995-Natural Raw Copper, Single Decorative Post Mount, 100-Black, Smooth Direct Burial Pole, 100-Black 600 600 41166
55927 65160 product 0 68160 A 2 D 0 0 original-brass-single-decorative.jpg 16" The Original™ LED, 997-Natural Raw Brass, Single Decorative Post Mount, 975-Galvanized, Smooth Direct Burial Pole, 975-Galvanized, CGG-Standard Cast Guard, 975-Galvanized, CCR-Clear Crackle Glass 600 600 68160
28935 64180 product 0 41155 A 3 D 0 0 16-in-aero-decorative-single-750-cobalt-galv-cage-post.jpg 16" Aero, 715-Cobalt, Wire Cage, 975-Galvanized, Single Decorative Post Mount, 975-Galvanized, Smooth Direct Burial Pole, 975-Galvanized 600 600 41155
28947 64181 product 0 41167 A 3 D 0 0 16-in-avalon-single-post-mount-550-yellow-fluted-white-pole.jpg 16" Avalon, 550-Porcelain Yellow, Single Post Mount, 200-White, Fluted Direct Burial Pole, 200-White 600 600 41167
64856 65160 product 0 77089 A 3 C 0 0 46922402-C705-residential-exterior-lighting-Original-Nautical-LED-Single-Post-Mount-16in-400-Barn-Red-10-ft-smooth-pole-100-Black-TGG-Amber-Glass.jpeg 16" The Original™ LED, 400-Barn Red, 10' Smooth Pole, 100-Black, TGG, Amber Glass | Photo Courtesy of Homeowner 4032 3024 77089
28948 64181 product 0 41168 A 4 D 0 0 12-in-avalon-355-jadite-cgg-frosted-galv-smooth-galv-pole.jpg 14" Avalon, 355-Porcelain Jadite, Heavy Duty Cast Guard & Frosted Glass, 975-Galvanized, Single Decorative Post Mount, 975-Galvanized, Smooth Direct Burial Pole, 975-Galvanized 600 600 41168
64857 65160 product 0 77090 A 4 C 0 0 F9E00DC7-AF54-residential-exterior-lighting-Original-Nautical-LED-Single-Post-Mount-16in-400-Barn-Red-10-ft-smooth-pole-100-Black-TGG-Amber-Glass.jpeg 16" The Original™ LED, 400-Barn Red, 10' Smooth Pole, 100-Black, TGG, Amber Glass | Photo Courtesy of Homeowner 2420 1933 77090
28937 64180 product 0 41157 A 5 D 0 0 astro-brass--single-decorative-post-mount-black.jpg 14" Aero, 997-Natural Raw Brass, Single Decorative Post Mount, 100-Black, Smooth Direct Burial Pole, 100-Black 600 600 41157
28949 64181 product 0 41169 A 5 D 0 0 avalon-brass-single-post-mount-galvanized.jpg 14" Avalon, 997-Natural Raw Brass, Single Post Mount, 975-Galvanized, Fluted Direct Burial Pole, 975-Galvanized 600 600 41169
68665 65160 product 0 80898 A 5 C 0 0 IMG_4856-residential-exterior-lighting-boat-dock-waterfront-Original-Nautical-LED-Single-Post-Mount-16in-370-Mint-200-White-TGG-Clear-Glass-10ft-Smooth-Pole-200-White.jpg 16" The Original™ Nautical LED Post Mount, 370-Mint, TGG-Heavy Duty Cast Guard, 200-White, 10ft Smooth Direct Burial Pole, 200-White | Photo Courtesy of Pine Island Kayaks 2000 2444 80898
58270 64180 product 0 70503 A 6 C 0 0 IMG_7793.jpg 14" Aero, 995-Natural Raw Copper, Single Decorative Post Mount, 975-Galvanized, Smooth Direct Burial Pole, 975-Galvanized | Photo Courtesy of Homeowner 1242 1518 70503
64280 64181 product 0 76513 A 6 C 0 0 image003-residential-exterior-lighting-Avalon-Single-Post-Mount-Light-Decorative-16in-750-Cobalt-Blue.jpg 16" Avalon, 750-Cobalt Blue | Photo Courtesy of Homeowner 1512 2016 76513
68664 65160 product 0 80897 A 6 C 0 0 IMG_4855-residential-exterior-lighting-boat-dock-waterfront-Original-Nautical-LED-Single-Post-Mount-16in-370-Mint-200-White-TGG-Clear-Glass-10ft-Smooth-Pole-200-White.jpg 16" The Original™ Nautical LED Post Mount, 370-Mint, TGG-Heavy Duty Cast Guard, 200-White, 10ft Smooth Direct Burial Pole, 200-White | Photo Courtesy of Pine Island Kayaks 2000 2667 80897
56084 64181 product 0 68317 A 7 C 0 0 -_Barn_Light_Electric_-_Avalon_Single_Post_Mount_Light_-_Oyster_Cove_-_Lighting_Environements_-_Area_Park_LightingScreen_Shot_2020-05-11_at_5.41.25_PM.png 16” Avalon, 355-Porcelain Jadite Shade, Single Post Mount in 100-Black | Photo Courtesy of Oyster Cove, Lighting Environments, and Creative Land Design 429 573 68317
58479 64180 product 0 70712 A 7 C 0 0 Aero_Single_Post_Mount_Light_-_995-Raw-Copper-Barn_Light_Electric_-_Modern_Exterior_Post_Mount.jpg 14" Aero, 996-Weathered Copper, Single Post Mount, 100-Black, 8’ Smooth Direct Burial Pole, Heavy Duty Guard in 100-Black, Clear Glass | Photo Courtesy of Homeowner 1500 2027 70712
58534 64181 product 0 70767 A 8 C 0 0 Avalon_Single_Post_Mount_-_Delphite_Barn_Light_Electric_-_Modern_Exterior_Lighting.jpg 14” Avalon, 765-Porcelain Delphite, Single Post Mount in 200-White, 14” Wire Cage in 250-White | Photo Courtesy of Maggie Fish (@blueneonfish) 1500 1125 70767
60752 64180 product 0 72985 A 8 C 0 0 Aero_Single_Post_Mount_Light_-_Barn_Light_Electric_-_Exterior_Home_Lighting.jpg 16” Aero, 100-Black, Single Decorative Post Mount, No Direct Burial Pole, Wire Guard in 100-Black, Clear Glass | Photo Courtesy of Homeowner 1498 1619 72985
56085 64181 product 0 68318 A 9 C 0 0 -_Barn_Light_Electric_-_Avalon_Single_Post_Mount_Light_-_Oyster_Cove_-_Lighting_Environements_-_Area_Park_LightingScreen_Shot_2020-05-11_at_5.41.17_PM.png 16” Avalon, 355-Porcelain Jadite Shade, Single Post Mount in 100-Black | Photo Courtesy of Oyster Cove, Lighting Environments, and Creative Land Design 429 574 68318
58478 64180 product 0 70711 A 9 C 0 0 Aero_Single_Post_Mount_Light_-_995-Raw_Copper-Barn_Light_Electric_-_Modern_Exterior_Post_Mount_Lighting.jpg 14" Aero, 996-Weathered Copper, Single Post Mount, 100-Black, 8’ Smooth Direct Burial Pole, Heavy Duty Guard in 100-Black, Clear Glass | Photo Courtesy of Homeowner 1500 2000 70711
56086 64181 product 0 68319 A 10 C 0 0 -_Barn_Light_Electric_-_Avalon_Single_Post_Mount_Light_-_Oyster_Cove_-_Lighting_Environements_-_Area_Park_LightingScreen_Shot_2020-05-11_at_5.41.09_PM.png 16” Avalon, 355-Porcelain Jadite Shade, Single Post Mount in 100-Black | Photo Courtesy of Oyster Cove, Lighting Environments, and Creative Land Design 429 574 68319
60751 64180 product 0 72984 A 10 C 0 0 Aero_Single_Post_Mount_Light_-_Barn_Light_Electric_-_Exterior_Area_Lighting.jpg 16” Aero, 100-Black, Single Decorative Post Mount, No Direct Burial Pole, Wire Guard in 100-Black, Clear Glass | Photo Courtesy of Homeowner 1503 1875 72984
57456 64181 product 0 69689 A 11 C 0 0 Avalon_Single_Post_Mount_Light_-_Barn_Red_Barn_Light_Electric_-_Exterior_Modern_Area_Lighting.jpg 16” Avalon, 400-BarnRed Shade, Single Post Mount in 975-Galvanized | Photo Courtesy of Homeowner 1500 1724 69689
60753 64180 product 0 72986 A 11 C 0 0 Aero_Single_Post_Mount_Light_-_Barn_Light_Electric_-_Post_Mount_Lighting.jpg 16” Aero, 100-Black, Single Decorative Post Mount No Direct Burial Pole, Wire Guard in 100-Black, Clear Glass | Photo Courtesy of Homeowner 1477 1971 72986
58536 64181 product 0 70769 A 12 C 0 0 Avalon_Single_Post_Mount_-_Delphite_Barn_Light_Electric_-_Modern_Post_Mount_Exterior_Lighting.jpg 14” Avalon, 765-Porcelain Delphite, Single Post Mount in 200-White, 14” Wire Cage in 250-White | Photo Courtesy of Maggie Fish (@blueneonfish) 1500 2000 70769
65006 64180 product 0 77239 A 12 C 0 0 image002-residential-exterior-lighting-driveway-Aero-Single-Post-Mount-14in-105-Textured-Black-CGG_Frosted-10ft-smooth-pole-105-Textured-Black.jpg 14" Aero, 105-Textured Black, CGG-Standard Cast Guard, FST-Frosted Glass, Smooth Direct Burial Pole 477 610 77239
57458 64181 product 0 69691 A 13 C 0 0 Avalon_Single_Post_Mount_Light_-_Barn_Red_Barn_Light_Electric_-_Modern_Area_Lighting.jpg 16” Avalon, 400-Barn Red Shade, Single Post Mount in 975-Galvanized | Photo Courtesy of Homeowner 1500 2000 69691
65526 64180 product 0 77759 A 13 C 0 0 IMG_5143-residential-exterior-lighting-on-Aero-Single-Post-Mount-16in-995-Raw-Copper-Post-605-Rust-8ft-Smooth-Pole-605-Rust.jpg 16" Aero, 995-Raw Copper, 605-Rust Post, 8 ft. Smooth Pole | Photo Courtesy of Homeowner 1164 1166 77759
65527 64180 product 0 77760 A 14 C 0 0 IMG_5144-residential-exterior-lighting-on-Aero-Single-Post-Mount-16in-995-Raw-Copper-Post-605-Rust-8ft-Smooth-Pole-605-Rust.jpg 16" Aero, 995-Raw Copper, 605-Rust Post, 8 ft. Smooth Pole | Photo Courtesy of Homeowner 1477 1971 77760