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 (64351, 63810, 63806, 63467) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00128

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 (64351,63810,63806,63467)"
        }
      }
    },
    "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
26273 63467 product 0 38436 A 0 D 0 0 Downtown-3-Light-Chandelier-Black-Victorian-Style-Edison-Bulb.jpg Downtown Minimalist 3-Light Chandelier, 100-Black, 12" Stem, 25W Victorian Style Edison Bulbs 1000 1000 38436
27411 63810 product 0 39588 A 0 D 0 0 Parson-5-Arm-Barn-Red-Chandelier-1890-Era-Bulb.jpg Parson Adjustable Arm Chandelier, 400-Barn Red, Nostalgic Edison 1890 Era Bulbs 1000 1000 39588
27413 63810 product 0 39590 A 0 D 0 0 Parson-5-Arm-Delphite-Chandelier-1890-Era-Bulb.jpg Parson Adjustable Arm Chandelier, 715-Delphite Blue PTMP, Nostalgic Edison 1890 Era Bulbs 1000 1000 39590
27414 63810 product 0 39591 A 0 D 0 0 Parson-5-Arm-Magenta-Chandelier-1890-Era-Bulb.jpg Parson Adjustable Arm Chandelier, 490-Magenta, Nostalgic Edison 1890 Era Bulbs 1000 1000 39591
30073 63806 product 0 42296 A 0 D 0 0 Ellis-5-Arm-Brass-Chandelier-1890-Era-Bulb.jpg Ellis Adjustable Arm Chandelier, 997-Natural Raw Brass, Nostalgic Edison 1890 Era Bulbs 1000 1000 42296
30074 63810 product 0 42297 A 0 D 0 0 Parson-5-Arm-Brass-Chandelier-1890-Era-Bulb.jpg Parson Adjustable Arm Chandelier, 997-Natural Raw Brass, Nostalgic Edison 1890 Era Bulbs 1000 1000 42297
30154 63810 product 0 42377 A 0 D 0 0 Parson-5-Arm-Black-Chandelier-1890-Era-Bulb.jpg Parson Adjustable Arm Chandelier, 100-Black, Nostalgic Edison 1890 Era Bulbs 1000 1000 42377
30425 64351 product 0 42657 A 0 D 0 0 bubble-chandelier-clear-chartreuse.jpg Bubble 5-Light Chandelier, 380-Chartreuse, Clear Globes 1000 1000 42657
27422 63806 product 0 39599 A 1 D 0 0 Ellis-5-Arm-Teal-Chandelier-1890-Era-Bulb.jpg Ellis Adjustable Arm Chandelier, 390-Teal, Nostalgic Edison 1890 Era Bulbs 1000 1000 39599
30426 64351 product 0 42658 A 1 D 0 0 bubble-chandelier-opaque-barn-red.jpg Bubble 5-Light Chandelier, 400-Barn Red, White Globes 1000 1000 42658
67661 63467 product 0 79894 A 1 C 0 0 image4-residential-interior-lighting-Downtown-Minimalist-3-Light-Chandelier-975-Galvanized-12in-Stem.jpeg Downtown Minimalist 3-Light Chandelier, 975-Galvanized, 12" Stem | Customer Submission 3004 3246 79894
27421 63806 product 0 39598 A 2 D 0 0 Ellis-5-Arm-Barn-Red-Chandelier-1890-Era-Bulb.jpg Ellis Adjustable Arm Chandelier, 400-Barn Red, Nostalgic Edison 1890 Era Bulbs 1000 1000 39598
30078 63467 product 0 42301 A 2 C 0 0 The_Downtown_Minimalist_3-Light_Chandelier.jpg Downtown Minimalist 3-Light Chandelier, 997-Natural Raw Brass | Photo Courtesy of Homeowner 683 1024 42301
30427 64351 product 0 42659 A 2 D 0 0 bubble-chandelier-clear-delphite.jpg Bubble 5-Light Chandelier, 715-Delphite PTMP, Clear Globes 1000 1000 42659
27418 63806 product 0 39595 A 3 D 0 0 Ellis-5-Arm-Dark-Green-Chandelier-1890-Era-Bulb.jpg Ellis Adjustable Arm Chandelier, 300-Dark Green, Nostalgic Edison 1890 Era Bulbs 1000 1000 39595
30075 63467 product 0 42298 A 3 D 0 0 Downtown-3-Light-Chandelier-Galvanized-1890-Era-Edison-Bulb.jpg Downtown Minimalist 3-Light Chandelier, 975-Galvanized, 12" Stem, 40W 1890 Era Edison Bulbs 1000 1000 42298
30428 64351 product 0 42660 A 3 D 0 0 bubble-chandelier-opaque-sunflower.jpg Bubble 5-Light Chandelier, 570-Sunflower, White Globes 1000 1000 42660
27419 63806 product 0 39596 A 4 D 0 0 Ellis-5-Arm-Black-Chandelier-1890-Era-Bulb.jpg Ellis Adjustable Arm Chandelier, 100-Black, Nostalgic Edison 1890 Era Bulbs 1000 1000 39596
30429 64351 product 0 42661 A 4 D 0 0 bubble-chandelier-opaque-galvanized.jpg Bubble 5-Light Chandelier, 975-Galvanized, White Globes 1000 1000 42661
62897 63467 product 0 75130 A 4 C 0 0 image2-residential-interior-mudroom-hallway-lighting-downtown-minimalist-3-light-chandelier-495-sherbet-orange-24in-stem-Porcelain-II-LED-Tala-Lamp.jpeg Downtown Minimalist 3-Light Chandelier, 495-Sherbet Orange, 24" Stem, Porcelain II LED Tala Lamp | Photo Courtesy of Homeowner 1500 1943 75130
26279 63467 product 0 38442 A 5 D 0 0 Downtown-3-Light-Chandelier-Dark-Green-Victorian-Style-Edison-Bulb.jpg Downtown Minimalist 3-Light Chandelier, 300-Dark Green, 12" Stem, 25W Victorian Style Edison Bulbs 1000 1000 38442
30430 64351 product 0 42662 A 5 D 0 0 bubble-chandelier-opaque-mint.jpg Bubble 5-Light Chandelier, 370-Mint, White Globes 1000 1000 42662
68536 63806 product 0 80769 A 5 C 0 0 14-Residential-interior-lighting-dining-Ellis-Adjustable-Arm-Chandelier-110-PTM-Black-12in-Stem.jpg Ellis Adjustable Arm Chandelier, 110-Black, 12" Stem | Photo Courtesy of Vertical Point Media 1200 800 80769
26280 63467 product 0 38443 A 6 D 0 0 Downtown-3-Light-Chandelier-Navy-Victorian-Style-Edison-Bulb.jpg Downtown Minimalist 3-Light Chandelier, 705-Navy, 12" Stem, 25W Victorian Style Edison Bulbs 1000 1000 38443
30431 64351 product 0 42663 A 6 D 0 0 bubble-chandelier-opaque-navy.jpg Bubble 5-Light Chandelier, 705-Navy, White Globes 1000 1000 42663
32716 63806 product 0 44949 A 6 C 0 0 ellis_adjust_chandelier_PTMJadite_36instem.jpg Ellis Adjustable Arm Chandelier (Also Shown: Our Esso Wall Sconces), 311-Jadite PTMP, 36" Stem | Courtesy of Customer 800 925 44949
30433 64351 product 0 42665 A 7 D 0 0 bubble-chandelier-clear-white.jpg Bubble 5-Light Chandelier, 200-White, Clear Globes 1000 1000 42665
32277 63806 product 0 44510 A 7 C 0 0 modern_chandelier[1].jpg Ellis Adjustable Arm Chandelier, 100-Black | Photo Courtesy of Designer Vanessa Antonelli and Chris Veith Photography 1024 683 44510
58995 63467 product 0 71228 A 7 C 0 0 Downtown_Minimalist_3-Light_Chandelier_-_Barn_Light_Electric_-_Bedroom_Lighting.JPG Downtown Minimalist 3-Light Chandelier, 997-Natural Raw Brass | Photo Courtesy of Homeowner 2367 2367 71228
30432 64351 product 0 42664 A 8 D 0 0 bubble-chandelier-opaque-watermelon.jpg Bubble 5-Light Chandelier, 470-Watermelon, White Globes 1000 1000 42664
31855 63467 product 0 44088 A 8 C 0 0 Downtown_Minimalist_3-Light_Chandelier_Raw_Brass.jpg Downtown Minimalist 3-Light Chandelier, 997-Natural Raw Brass, 40W 1890 Era Edison Bulbs 3500 2334 44088
35847 63806 product 0 48080 A 8 C 0 0 modern_chandelier_lighting-768x512__1_.jpg Ellis Adjustable Arm Chandelier, 100-Black | Photo Courtesy of Designer Vanessa Antonelli and Chris Veith Photography 768 512 48080
30466 64351 product 0 42698 A 9 C 0 0 bubble-chandelier-web.jpg Bubble 5-Light Chandelier, 100-Black, Clear Globes 1172 1000 42698
35128 63467 product 0 47361 A 9 C 0 0 american_made_chandelier_lighting__1_.jpg Downtown Minimalist 3-Light Chandelier, 997-Natural Raw Brass | Photo Courtesy of Homeowner 1148 1722 47361
62353 63806 product 0 74586 A 9 C 0 0 Ellis_Adjustable_Arm_Chandelier_615-Oil-Rubbed_Bronze_6instem_Globe_LED_Tala_Lamp3.jpg Ellis Adjustable Arm Chandelier, 615-Oil-Rubbed Bronze, Shown with Globe LED Tala Lamp | Photo Courtesy of Homeowner 1500 1125 74586
30077 63467 product 0 42300 A 10 C 0 0 brass_chandelier-512x768.jpg Downtown Minimalist 3-Light Chandelier, 998-Natural Weathered Brass | Photo Courtesy of Homeowner 512 768 42300
30469 64351 product 0 42701 A 10 C 0 0 bubble-chandelier-web-2.jpg Bubble 5-Light Chandelier, 380-Chartreuse, White Globes 1208 1000 42701
32276 63806 product 0 44509 A 10 C 0 0 adjustable_chandelier-1.jpg Ellis Adjustable Arm Chandelier, 100-Black | Photo Courtesy of Designer Vanessa Antonelli and Chris Veith Photography 1024 652 44509
30505 64351 product 0 42737 A 11 C 0 0 bubble-chandelier-white.jpg Bubble 5-Light Chandelier, 200-White, Clear Globes | Customer Submission 432 649 42737
62354 63806 product 0 74587 A 11 C 0 0 Ellis_Adjustable_Arm_Chandelier_615-Oil-Rubbed_Bronze_6instem_Globe_LED_Tala_Lamp.jpg Ellis Adjustable Arm Chandelier, 615-Oil-Rubbed Bronze, Shown with Globe LED Tala Lamp | Photo Courtesy of Homeowner 1500 1125 74587
60090 64351 product 0 72323 A 12 C 0 0 Bubble_5-Light_Chandelier_-_Black_Barn_Light_Electric_-_Modern_Entryway_Lighting_Chandelier.jpg Bubble 5-Light Chandelier, 100-Black, Clear Glass, 12in Stem | Photo Courtesy of Jocelyn Martinez and E&A Construction 1500 2250 72323
60088 64351 product 0 72321 A 13 C 0 0 Bubble_5-Light_Chandelier_-_Barn_Light_Electric_-_Modern_Interior_Lighting.JPG Bubble 5-Light Chandelier, 100-Black, Clear Glass, 12in Stem | Photo Courtesy of Jocelyn Martinez and E&A Construction 1622 960 72321
60089 64351 product 0 72322 A 14 C 0 0 Bubble_5-Light_Chandelier_-_Black_Barn_Light_Electric_-_Entryway_Modern_Interior_Lighting.jpg Bubble 5-Light Chandelier, 100-Black, Clear Glass, 12in Stem | Photo Courtesy of Jocelyn Martinez and E&A Construction 1500 2250 72322
32717 64351 product 0 44950 A 15 C 0 0 bubble_5light_chandelier_delphiteblue_clearglass_36instem.jpg Bubble 5-Light Chandelier, 715-Delphite PTMP, Clear Globes, 36" Stem | Courtesy of Customer 800 1097 44950
65144 64351 product 0 77377 A 16 C 0 0 Loft_Living_Room_residential-interior-lighting-Bubble-5-Light-Chandelier-Clear-Glass-105-Textured-Black-12in-stem-G30-Thread-Edison.jpg Bubble 5-Light Chandelier, Clear Glass, 105-Textured Black, 12" Stem, G30 Arm, Thread Edison Bulb | Photo Courtesy of Dion Williams Design 1500 1001 77377
66212 64351 product 0 78445 A 17 C 0 0 Loft_Living_Room_Black.jpg Bubble 5-Light Chandelier, Clear Glass, 105-Textured Black, 12" Stem, G30 Arm, Thread Edison Bulb | Photo Courtesy of Dion Williams Design 1500 1500 78445
66472 64351 product 0 78705 A 18 C 0 0 residential-interior-lighting-hallway-entryway-Bubble-5-Light-Chandelier-White-Glass-200-White-36in-stem-Victorian-Edison-60w-Bulbs.jpg Bubble 5-Light Chandelier, White Glass, 200-White, 36" Stem, Victorian Edison 60w Bulb | Customer Submission 1500 2000 78705