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 (61051, 61052, 61411, 61417) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00096

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": 43,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (61051,61052,61411,61417)"
        }
      }
    },
    "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
14088 61052 product 0 24869 A 0 D 0 0 laramie-stem-8in-390-teal.jpg 8" Laramie, 390-Teal 1000 1000 24869
14077 61051 product 0 24858 A 1 D 0 0 Laramie-Gooseneck-8in-390-teal-G3.jpg 8" Laramie, 390-Teal, G3 Straight Arm 1000 1000 24858
21213 61417 product 0 33094 A 1 D 0 0 Laramie-Bantam-Sconce-8in-975-Galvanized.jpg 8" Bantam Laramie, 975-Galvanized 1000 1000 33094
64838 61052 product 0 77071 A 1 D 0 0 laramie-stem-16in-barn-red-100-black-Heavy-duty-canopy.jpg 16" Laramie, 400-Barn Red, Mounting in 100-Black, Heavy Duty Canopy 1000 1000 77071
64853 61411 product 0 77086 A 1 D 0 0 Laramie-Wall-Sconce-16in-975-galvanized-CGG-RIB.jpg 16" Laramie Wall Sconce, 975-Galvanized, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 77086
19261 61417 product 0 30973 A 2 D 0 0 Laramie-Bantam-Sconce-8in-390-teal.jpg 8" Bantam Laramie, 390-Teal 1000 1000 30973
30219 61411 product 0 42442 A 2 D 0 0 Laramie-Wall-Sconce-12in-500-buttery-yellow.jpg 12" Laramie Wall Sconce, 500-Buttery Yellow 1000 1000 42442
72663 61052 product 0 84896 A 2 D 0 0 Laramie-stem-pendant-30in-705-navy.jpg 30" Laramie, 705-Navy 1000 1000 84896
32522 61052 product 0 44755 A 3 D 0 0 laramie-stem-12in-800-industrial-grey-CGG-FST.jpg 12" Laramie, 800-Industrial Grey, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 44755
64851 61411 product 0 77084 A 3 D 0 0 Laramie-Wall-Sconce-16in-100-black-WC_kkib-27.jpg 16" Laramie Wall Sconce, 100-Black, Wire Cage 1000 1000 77084
18205 61052 product 0 29834 A 4 C 0 0 barn_pendant_kitchen_laramie.jpg Laramie, 200-White | Photo Courtesy of Customer 586 465 29834
30220 61411 product 0 42443 A 4 D 0 0 Laramie-Wall-Sconce-12in-790-lavender.jpg 12" Laramie Wall Sconce, 790-Lavender 1000 1000 42443
14079 61051 product 0 24860 A 5 D 0 0 Laramie-Gooseneck-12in-200-white-G24.jpg 12" Laramie, 200-White, G24 Gooseneck Arm 1000 1000 24860
23130 61417 product 0 35041 A 5 D 0 0 Laramie-Bantam-Sconce-8in-100-black.jpg 8" Bantam Laramie, 100-Black 1000 1000 35041
28313 61052 product 0 40506 A 5 C 0 0 barn_pendant_lighting_ceiling_lights-538x768.jpg 12" Laramie, 200-White | Photo Courtesy of Customer 538 768 40506
16088 61411 product 0 27608 A 6 D 0 0 Laramie-Wall-Sconce-12in-200-white.jpg 12" Laramie Wall Sconce, 200-White 1000 1000 27608
51994 61051 product 0 64227 A 6 C 0 0 laramie_gooseneck_105_textured_black.jpg 5-Textured Black, G32 Gooseneck Arms | Photo Courtesy of Molly Kay Johns - MK Interiors(4) 16” Laramie, 10 1500 2000 64227
28326 61417 product 0 40519 A 7 C 0 0 bantam-laramie-galvanized.jpg 8" Bantam Laramie Sconce, 975-Galvanized | Photo Courtesy of Customer 750 900 40519
32492 61411 product 0 44725 A 7 C 0 0 laramie_wall_sconce_12in-textrdblack.jpg (2) 12" Laramie Sconces, 105-Textured Black | Photo Courtesy of Hinton Mills Farm Supply 1500 2000 44725
63698 61051 product 0 75931 A 7 C 0 0 20210629_200251-commercial-exterior-barn-lighting-Laramie-Gooseneck-Light-12in-105-Textured-Black-G16arm.jpg 12" Laramie, 105-Textured Black, G16 Straight Arm 1500 1467 75931
61411 61411 product 0 73644 A 8 C 0 0 Laramie_Wall_Sconce_-_Barn_Light_Electric_-_Farmhouse_Bathroom_Lighting-100-black.jpg 12" Laramie Sconce, 106-Matte Black | Photo Courtesy of Homeowner 1500 1759 73644
64060 61051 product 0 76293 A 8 C 0 0 residential-exterior-lighting-garage-snow-holiday-seasonal-Laramie-Gooseneck-12in-100-Black-G3arm-DBP.jpg 12" Laramie, 100-Black, G3 Gooseneck Arm | Photo Courtesy of The Bacon House CL 1721 2477 76293
28312 61417 product 0 40505 A 9 C 0 0 barn_wall_sconce_wall_lighting-484x768.jpg 8" Bantam Laramie Sconce, 20-White | Photo Courtesy of Customer 484 768 40505
63699 61051 product 0 75932 A 9 C 0 0 Barn_light-commercial-exterior-barn-lighting-Laramie-Gooseneck-Light-12in-105-Textured-Black-G16arm.jpg 12" Laramie, 105-Textured Black, G16 Straight Arm 1500 2000 75932
68212 61411 product 0 80445 A 9 C 0 0 Vernon_Family_Farm_2-commercial-exterior-farm-kitchen-restaurant-lighting-Canal-SoHo-Sconce-570-Sunflower-975-Galvanized-Laramie-Wall-Sconce-16in-400-Barn-Red-TGG-Frosted.jpg 16" Laramie Wall Sconce, 400-Barn Red, Heavy Duty Cast Guard, Frosted Glass | Photo Courtesy of Whitewave Photograhy 1883 1415 80445
44118 61417 product 0 56351 A 10 C 0 0 barn_wall_lighting_wall_sconce-445x768.jpg 8” Bantam Laramie Sconce, 100-Black | Photo Courtesy of Christina’s Adventures 445 768 56351
60311 61051 product 0 72544 A 10 C 0 0 Laramie_Gooseneck_Light_-975_Galvanized_Barn_Light_Electric_-_Barn_Exterior_Farmhosue_Lighting.jpg 16” Laramie, 975-Galvanized, G22 Gooseneck Arm | Photo Courtesy of From the Hartland (@from.the.hartland) 1500 2000 72544
65390 61411 product 0 77623 A 10 C 0 0 red-laramie-cgg.jpg 16" Laramie Sconce, 400-Barn Red, TGG, Frosted Glass | Photo Courtesy of Whitewave Photography 1500 2254 77623
65482 61417 product 0 77715 A 10 C 0 0 IMG_6794-residential-exterior-lighting-porch-entryway-Bantam-Laramie-Wall-Sconce-8in-105-Textured-Black.jpg 8" Bantam Laramie Sconce, 105-Textured Black | Photo Courtesy of Homeowner 2747 3871 77715
60310 61051 product 0 72543 A 11 C 0 0 Laramie_Gooseneck_Light_-_975_Galvanized_Barn_Light_Electric_-_Barn_Garage_Lighting.jpg 16” Laramie, 975-Galvanized, G22 Gooseneck Arm | Photo Courtesy of From the Hartland (@from.the.hartland) 1500 1125 72543
58283 61051 product 0 70516 A 12 C 0 0 Laramie_Gooseneck_Light_-_105_Textured_Black_Barn_Light_Electric_-_Commercial_Exterior_Restaurant_Lighting_0ogm-yz.jpg Laramie, 105-Textured Black, G6 Gooseneck Arm | Photo Courtesy of Customer 1500 2000 70516
60316 61411 product 0 72549 A 12 C 0 0 Laramie_Wall_Sconce_-_Barn_Light_Electric_-_Front_Porch_Farmhouse_Lighting.jpeg Laramie Sconce, 975-Galvanized | Photo Courtesy of From the Hartland (@from.the.hartland) 1536 2048 72549
28314 61051 product 0 40507 A 13 C 0 0 american_made_gooseneck_barn_lights-636x768.jpg Laramie, 250-Porcelain White, G22 Gooseneck Arm | Photo Courtesy of Customer 636 768 40507
61412 61411 product 0 73645 A 13 C 0 0 Laramie_Wall_Sconce_-_100_Black_Barn_Light_Electric_-_Farmhouse_Bathroom_Vanity_Lighting.jpg 12" Laramie Sconce, 106-Matte Black | Photo Courtesy of Homeowner 1500 2000 73645
32490 61051 product 0 44723 A 14 C 0 0 laramie_gooseneck_105_txtrdblack_G15arm2.jpg (3) 16" Laramie, 105-Textured Black, G15 Gooseneck Arms | Photo Courtesy of Hinton Mills Farm Supply 1500 2000 44723
60315 61411 product 0 72548 A 14 C 0 0 Laramie_Wall_Sconce_-_Barn_Light_Electric_-_Farmhouse_Decor_Back_Porch_Lighting-galvanized.jpg Laramie Sconce, 975-Galvanized | Photo Courtesy of From the Hartland (@from.the.hartland) 1500 2000 72548
51995 61051 product 0 64228 A 15 C 0 0 chestnut_gooseneck_16in_105_texturedblk_G32arm13.jpg (4) 16” Laramie, G32 Gooseneck Arm, 105-Textured Black | Photo Courtesy of Molly Kay Johns - MK Interiors 1500 1125 64228
60317 61411 product 0 72550 A 15 C 0 0 Laramie_Wall_Sconce_-_Barn_Light_Electric_-_Farmhouse_Front_Porch_Lighting_.jpeg Laramie Sconce, 975-Galvanized | Photo Courtesy of From the Hartland (@from.the.hartland) 2048 1536 72550
30267 61051 product 0 42490 A 16 C 0 0 gooseneck_barn_lights_wall_lighting.jpg 12" Laramie, 975-Galvanized, CGG-Standard Cast Guard, 400-Barn Red, CLR-Clear Glass | Photo Courtesy of Customer 480 640 42490
62870 61411 product 0 75103 A 16 C 0 0 4M5A1362-Commercial-Interior-Hotel-Restaurant-Breakfast-Bar-Laramie-Sconce-975-galvanized-on.jpg 12" Laramie Sconce, 975-Galvanized 1500 1000 75103
32489 61051 product 0 44722 A 17 C 0 0 laramie_gooseneck_105_txtrdblack_G11arm4.jpg (5) 16" Laramie, 105-Textured Black, G11 Gooseneck Arms | Photo Courtesy of Hinton Mills Farm Supply 1500 2000 44722
60313 61051 product 0 72546 A 18 C 0 0 Laramie_Gooseneck_Light_-_975_Galvanized_Barn_Light_Electric_-_Exterior_Farmhouse_Garage_Lighting.jpg 16” Laramie, 975-Galvanized, G22 Gooseneck Arm | Photo Courtesy of From the Hartland (@from.the.hartland) 1500 2000 72546
58960 61051 product 0 71193 A 19 C 0 0 Laramie_Gooseneck_Light_-_Barn_Light_Electric_-_Barn_Lighting.JPG 12” Laramie, 615-Oil Rubbed Bronze, G15 Gooseneck Arm | Photo Courtesy of Homeowner 2094 1362 71193