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 (64179, 64180, 65141, 65163) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00073

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": 39,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (64179,64180,65141,65163)"
        }
      }
    },
    "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
28913 64179 product 0 41133 A 0 D 0 0 bomber-brass-single-post-mount-black.jpg 17" Bomber Post Mount Light, 997-Natural Raw Brass, Single Post Mount Option in 100-Black, Fluted Direct Burial Pole in 100-Black 600 600 41133
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
55662 65141 product 0 67895 A 0 D 0 0 14-union-765-delphite-single-decorative-smooth-galv-pole.jpg 14" Union LED, 715-Delphite, Wire Cage, 975-Galvanized, Single Decorative Post Mount, 975-Galvanized, Smooth Direct Burial Pole, 975-Galvanized 600 600 67895
55664 65141 product 0 67897 A 0 D 0 0 union-brass-single-decorative-post-mount-galvanized145927341456fabec62cbf9.jpg 14" Union LED, 997-Natural Raw Brass, Single Decorative Post Mount, 975-Galvanized, Smooth Direct Burial Pole, 975-Galvanized 600 600 67897
55666 65141 product 0 67899 A 0 D 0 0 16-in-union-decorative-single-post-mount-455-cherry-red-2.jpg 16" Union LED, 400-Barn Red, Single Decorative Post Mount, Smooth Direct Burial Pole, 975-Galvanized 600 600 67899
55669 65141 product 0 67902 A 0 D 0 0 union-copper-single-post-mount-black_fupd-ku.jpg 14" Union LED, 995-Natural Raw Copper, Single Post Mount, 100-Black, Fluted Direct Burial Pole, 100-Black 600 600 67902
55947 65163 product 0 68180 A 0 D 0 0 union-copper-single-decorative.jpg 14" Union LED, 995-Natural Raw Copper, Decorative Single Post Mount, 975-Galvanized, Smooth Direct Burial Pole, 975-Galvanized, CGG-Standard Cast Guard, 975-Galvanized, CCR-Clear Crackle Glass 600 600 68180
55948 65163 product 0 68181 A 0 D 0 0 universal-brass-single.jpg 16" Union LED, 997-Natural Raw Brass, Single Post Mount, 975-Galvanized, Fluted Direct Burial Pole, 975-Galvanized, CGG-Standard Cast Guard, CCR-Clear Crackle Glass 600 600 68181
55949 65163 product 0 68182 A 0 D 0 0 14-in-union-decorative-single-post-mount-150-black-tgg-resize.jpg 14" Union LED, 100-Black, Decorative Single Post Mount, 975-Galvanized, Fluted Direct Burial Pole, 975-Galvanized, TGG-Heavy Duty Cast Guard, 975-Galvanized, FST-Frosted Glass 600 600 68182
67307 65163 product 0 79540 A 0 C 0 0 residential-exterior-lighting-patio-outdoor-kitchen-Union-Nautical-LED-Single-Post-Mount-16in-150-Black-CGG-Clear-Glass-Guard-975-Galva.jpg 16" Union LED, 100-Black, Standard Cast Guard, Clear Glass, Guard, 975-Glavanized | Customer Submission 1512 2016 79540
67308 65163 product 0 79541 A 0 C 0 0 IMG_4392-residential-exterior-lighting-patio-Union-Nautical-LED-Single-Post-Mount-16in-150-Black-CGG-Clear-Glass-Guard-975-Galvanized.jpg 16" Union LED, 100-Black, Standard Cast Guard, Clear Glass, Guard, 975-Glavanized | Customer Submission 1511 1677 79541
68387 65163 product 0 80620 A 0 C 0 0 residential-exterior-lighting-patio-Union-Nautical-LED-Single-Post-Mount-16in-150-Black-CGG-Clear-Glass-Guard-975-Galvanized-01.jpg 16" Union LED, 100-Black, Standard Cast Guard, Clear Glass, Guard, 975-Glavanized | Customer Submission 1500 2000 80620
68388 65163 product 0 80621 A 0 C 0 0 residential-exterior-lighting-patio-Union-Nautical-LED-Single-Post-Mount-16in-150-Black-CGG-Clear-Glass-Guard-975-Galvanized-02.jpg 16" Union LED, 100-Black, Standard Cast Guard, Clear Glass, Guard, 975-Glavanized | Customer Submission 1500 2000 80621
28914 64179 product 0 41134 A 1 D 0 0 15-in-bomber-750-cobalt-blue-fluted-galv-pole.jpg 15" Bomber Post Mount Light, 750-Porcelain Cobalt Blue, Single Post Mount Option in 975-Galvanized, Heavy Duty Cast Guard & Frosted Glass in 975-Galvanized, Fluted Direct Burial Pole in 975-Galvanized 600 600 41134
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
28920 64179 product 0 41140 A 2 D 0 0 bomber-copper-single-decorative-post-mount-galvanized.jpg 15" Bomber Post Mount Light, 995-Natural Raw Copper, Single Decorative Post Mount Option in 975-Galvanized, Smooth Direct Burial Pole in 975-Galvanized 600 600 41140
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
28921 64179 product 0 41141 A 3 D 0 0 17-in-bomber-single-post-mount-355-jadite-smooth-galv-pole.jpg 17" Bomber Post Mount Light, 355-Porcelain Jadite, Single Post Mount Option in 975-Galvanized, Smooth Direct Burial Pole in 975-Galvanized 600 600 41141
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
28922 64179 product 0 41142 A 4 D 0 0 15-in-bomber-single-post-mount-150-black-galv-post.jpg 15" Bomber Post Mount Light, 150-Porcelain Black, Single Post Mount Option in 975-Galvanized, Fluted Direct Burial Pole in 975-Galvanized 600 600 41142
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
30206 64179 product 0 42429 A 5 D 0 0 17-in-bomber-single-post-455-cherry-red-fluted-pole.jpg 17" Bomber Post Mount Light, 455-Porcelain Cherry Red, Single Post Mount Option in 975-Galvanized, Fluted Direct Burial Pole in 975-Galvanized 600 600 42429
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
68751 64179 product 0 80984 A 6 C 0 0 IMG_8864-residential-exterior-lighting-yard-Bomber-Single-Pos-Mount-Single-Decorative-17in-650-Bronze-CGG-455-Cherry-Red-Frosted-Glass.jpg 17" Bomber Post Mount, 650-Bronze, Standard Cast Guard, 455-Cherry Red, Frosted Glass | Customer Submission 3024 4032 80984
31982 64179 product 0 44215 A 7 C 0 0 bomber-post-mount-raw-brass.jpg 17" Bomber Post Mount Light, 997-Natural Raw Brass, Single Post Mount Option in 975-Galvanized, Smooth Direct Burial Pole in 975-Galvanized 1500 1000 44215
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
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
61545 64179 product 0 73778 A 8 C 0 0 Bomber_Single_Post_Mount_Light_-_Barn_Light_Electric_-_Exterior_Outdoor_Lighting.jpg 15" Bomber Post Mount Lights, 700-Royal Blue, Single Decorative Post Mount Option in 200-White | Photo Courtesy of Chipman Design Services 4032 3024 73778
28912 64179 product 0 41132 A 9 C 0 0 exterior_post_mount_barn_lighting-768x666.jpg 17" Bomber Post Mount Light, 150-Porcelain Black, Single Post Mount Option in 100-Black, Smooth Direct Burial Pole in 100-Black (Left: Includes Optional Wire Cage, Right: Includes Cast Guard & Glass) | Customer Submission 768 666 41132
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
35862 64179 product 0 48095 A 10 C 0 0 bomber_post_mount_light_15in_975_galvanized_wirecage.jpg 15" Bomber Post Mount Lights, 975-Galvanized, Single Decorative Post Mount Option in 975-Galvanized, Wire Cage, Smooth Direct Burial Pole | Photo Courtesy of Red Rose Motel and Tavern 1500 1283 48095
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
32303 64179 product 0 44536 A 11 C 0 0 bomber_post_mount_light_15in_galvanized_wirecage2.jpg (3) 15" Bomber Post Mount Lights, 975-Galvanized, Single Decorative Post Mount Option in 975-Galvanized, Wire Cage, Smooth Direct Burial Pole | Photo Courtesy of Red Rose Motel and Tavern 3264 4928 44536
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
61543 64179 product 0 73776 A 12 C 0 0 Bomber_Single_Post_Mount_Light_-_Royal_Blue_Barn_Light_Electric_-_Outdoor_Lighting.jpg 15" Bomber Post Mount Lights, 700-Royal Blue, Single Decorative Post Mount Option in 200-White | Photo Courtesy of Chipman Design Services 1500 1125 73776
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
61544 64179 product 0 73777 A 13 C 0 0 Bomber_Single_Post_Mount_Light_-_Royal_Blue_Barn_Light_Electric_-_Nautical_Exterior_Lighting.jpg 15" Bomber Post Mount Lights, 700-Royal Blue, Single Decorative Post Mount Option in 200-White | Photo Courtesy of Chipman Design Services 1500 1125 73777
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