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 (62208, 62434, 65074, 62057) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00120

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": 53,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (62208,62434,65074,62057)"
        }
      }
    },
    "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
19703 62057 product 0 31492 A 0 D 0 0 wilcox-vented-cord-12in-705-navy-cloth-cord.jpg 12" Wilcox Vented, 705-Navy, Narrow Slot Vents, Navy Cloth Cord 1000 1000 31492
21718 62434 product 0 33600 A 0 D 0 0 uplight-16-inch-pendant-975-galvanized.jpg 16" Wilcox Uplight, 975-Galvanized, CRZ-Red Chevron Cord 600 600 33600
51931 65074 product 0 64164 A 0 D 0 0 wilcox-chain-full-build-14in-550-yellow-nautical-100-black-sbk-standard-black.jpg 14" Wilcox Nautical LED, 550-Porcelain Yellow, Mounting in 150-Black, CGG-Standard Cast Guard, 150-Black, FST-Frosted Glass 1000 1000 64164
62816 65074 product 0 75049 A 0 D 0 0 wilcox-chain-14in-975-galvanized-400-barn-red-TGG-FST-CSBW-black-white-cord-dbw.jpg 14" Wilcox Nautical LED, 975-Galvanized, Mounting in 400-Barn Red, TGG-Heavy Duty Cast Guard, 400-Barn Red, FST-Frosted Glass, CSBW-Black & White Cloth Cord 1000 1000 75049
62819 62208 product 0 75052 A 0 D 0 0 wilcox-vented-chain-14in-975-galvanized-400-barn-red-WC-CSBW-black-white-cord-dbw.jpg 14" Wilcox Vented, 975-Galvanized, Circle Vents, Mounting in 400-Barn Red, Wire Cage, 400-Barn Red, CSBW-Black & White Cloth Cord 1000 1000 75052
62820 62208 product 0 75053 A 0 D 0 0 wilcox-vented-chain-10in-997-raw-brass-975-galvanized-CSGW.jpg 10" Wilcox Vented, 997-Natural Raw Brass, Narrow Slot Vents, Mounting in 975-Galvanized, CSGW-Gold & White Cloth Cord 1000 1000 75053
19701 62057 product 0 31490 A 1 D 0 0 wilcox-vented-cord-14in-975-galvanized-silver-cloth-cord.jpg 14" Wilcox Vented, 975-Galvanized, Circle Vents, Silver Cloth Cord 1000 1000 31490
21719 62434 product 0 33601 A 1 D 0 0 uplight-12-inch-pendant-105-navy.jpg 12" Wilcox Uplight, 705-Navy, SWH-Standard White Cord 600 599 33601
62817 65074 product 0 75050 A 1 D 0 0 wilcox-chain-16in-250-white-100-black-CGG-CSB_my5h-2c.jpg 16" Wilcox Nautical LED, 250-Porcelain White, Mounting in 150-Black, CGG-Standard Cast Guard, 150-Black, CLR-Clear Glass, CSB-Black Cloth Cord 1000 1000 75050
20604 62208 product 0 32431 A 2 D 0 0 wilcox-vented-chain-12in-705-navy-SWH.jpg 12" Wilcox Vented, 705-Navy, Narrow Slot Vents, SWH-Standard White Cord 1000 1000 32431
21720 62434 product 0 33602 A 2 D 0 0 uplight-16-inch-pendant-300-dark_green.jpg 16" Wilcox Uplight, 300-Dark Green, CSGW-Gold & White Cloth Cord 596 600 33602
29941 62057 product 0 42164 A 2 D 0 0 wilcox-vented-cord-20in-400-barn-red-swirl-cord.jpg 20" Wilcox Vented, 400-Barn Red, Circle Vents, Barn Red & Black Swirl Cloth Cord 1000 1000 42164
62818 65074 product 0 75051 A 2 D 0 0 wilcox-chain-12in-500-buttery-yellow-700-royal-CSUW-CGG-RIB.jpg 12" Wilcox Nautical LED, 500-Buttery Yellow, Mounting in 700-Royal Blue, CGG-Standard Cast Guard, 700-Royal Blue, RIB-Ribbed Glass, CSUW-Blue & White Cloth Cord 1000 1000 75051
68559 62208 product 0 80792 A 2 C 0 0 image0-residential-interior-lighting-on-laundry-room-mud-room-Wilcox-Vented-Chain-Hung-Pendant-14in-975-Galvanized-Circle-Vent-Black-Cloth-CSB.jpg 14" Wilcox Vented, 975-Galvanized, Circle Vents, CSB-Black Cloth Cord | Photo Courtesy of Strauss House Designs 1500 2000 80792
68560 62208 product 0 80793 A 2 C 0 0 image1-residential-interior-lighting-on-laundry-room-mud-room-Wilcox-Vented-Chain-Hung-Pendant-14in-975-Galvanized-Circle-Vent-Black-Cloth-CSB.jpg 14" Wilcox Vented, 975-Galvanized, Circle Vents, CSB-Black Cloth Cord | Photo Courtesy of Strauss House Designs 1500 2000 80793
19704 62057 product 0 31493 A 3 D 0 0 wilcox-vented-cord-16in-300-dark-green-SBK.jpg 16" Wilcox Vented, 300-Dark Green, Circle Vents, Standard Black Cord 1000 1000 31493
21721 62434 product 0 33603 A 3 D 0 0 uplight-14-inch-pendant-400-red_wire-cage.jpg 14" Wilcox Uplight, 400-Barn Red, Wire Cage, 975-Galvanized, SBK-Standard Black Cord 483 600 33603
21722 62434 product 0 33604 A 4 D 0 0 uplight-12-inch-pendant-100-black.jpg 12" Wilcox Uplight, 100-Black, CSBB-Black & Brown Chevron Cloth Cord 515 600 33604
61203 65074 product 0 73436 A 4 C 0 0 Wilcox_Nautical_LED_Chain_Hung_Pendant_-_Barn_Light_Electric_-_Kitchen_Sink_Farmhouse_Lighting.jpeg 14” Wilcox Nautical LED, 705-Navy, No Guard, Clear Glass, 6 ft of Chain in 705-Navy, CSW-White Cloth Cord | Photo Courtesy of Simply Wesley Interior Design and Maureen Porto Photography 1024 1536 73436
62948 62057 product 0 75181 A 4 C 0 0 16in-wilcox-vented-pendant-galvanized-narrow-slot-vent-sbk.jpg 16" Wilcox Vented Cord Hung Pendant, 975-Galvanized, Narrow Slot Vent, SBK-Standard Black Cord 1500 2000 75181
24449 62434 product 0 36430 A 5 D 0 0 uplight-14-inch-pendant-700-royalblue1431011112554b7f281e5ce.jpg 14" Wilcox Uplight, 700-Royal Blue, SBK-Standard Black Cord 559 600 36430
36578 62057 product 0 48811 A 5 C 0 0 wesco_vented_cord_12in_white_CSBW.jpg (2) 12" Wilcox Vented Cord Hung Pendants, 200-White, Narrow Slot Vent, CSBW - Black & White Clot | Photo Courtesy of Home Owner 1500 2285 48811
60065 65074 product 0 72298 A 5 C 0 0 Wilcox_Nautical_LED_Chain_Hung_Pendant_-_Barn_Light_Electric_-_Kitchen_Lighting.jpeg 14” Wilcox Nautical LED, 705-Navy, No Guard, Clear Glass, 6 ft of Chain in 705-Navy, CSW-White Cloth Cord | Photo Courtesy of Simply Wesley Interior Design and Maureen Porto Photography 720 960 72298
21723 62434 product 0 33605 A 6 D 0 0 uplight-18-inch-pendant-800-industrial-grey.jpg 18" Wilcox Uplight, 800-Industrial Grey, CSBP-Black & Pink Cloth Cord 584 600 33605
60769 62057 product 0 73002 A 6 C 0 0 Wilcox_Vented_Cord_Pendant_-_100_Black_Barn_Light_Electric_-_Dining_Room_Pendant_Lighting4.jpg 20” Wilcox Vented Cord Hung Pendants, 100-Black, Narrow Slot Vent, SBK-Standard Black Cord | Photo Courtesy of Designs North West 1500 2000 73002
21724 62434 product 0 33606 A 7 D 0 0 uplight-14_-inch-pendant-200-white_wire-cage.jpg 14" Wilcox Uplight, 200-White, Wire Cage, 975-Galvanized, CSUW-Blue & White Cloth Cord 525 600 33606
60770 62057 product 0 73003 A 7 C 0 0 Wilcox_Vented_Cord_Pendant_-_100_Black_Barn_Light_Electric_-_Dining_Room_Pendant_Lighting_61t1-u3.jpg 20” Wilcox Vented Cord Hung Pendants, 100-Black, Narrow Slot Vent, SBK-Standard Black Cord | Photo Courtesy of Designs North West 1500 1000 73003
35902 62057 product 0 48135 A 8 C 0 0 wesco_vented_pendant_rawcopper_12in_sbk_verticalvent3.jpg (8) 12" Wilcox Vented Cord Hung Pendants, 995-Raw Copper, Narrow Slot Vent, SBK-Standard Black Cord, Copper Hex Cover | Photo Courtesy of Campfire & Co. 1500 2250 48135
68738 62434 product 0 80971 A 8 C 0 0 image1-residential-interior-lighting-on-kitchen-island-Wilcox-Uplight-Cord-Hung-12in-200-White-CSW-White_-Cloth-Cord.jpeg 12" Wilcox Uplight, 200-White, Standard White Cloth Cord | Customer Submission 1933 1451 80971
35130 62057 product 0 47363 A 9 C 0 0 wilcox-vented-100-black-narrow-slot-vent.jpg 16" Wilcox Vented Cord Hung Pendant Lights, 100-Black, Narrow Slot Vents, TBW-Black & White Chevron Twist Cord | Photo Courtesy of Lolly Jane Blog 1500 2342 47363
68739 62434 product 0 80972 A 9 C 0 0 image5-residential-interior-lighting-on-kitchen-island-Wilcox-Uplight-Cord-Hung-12in-200-White-CSW-White_-Cloth-Cord.jpeg 12" Wilcox Uplight, 200-White, Standard White Cloth Cord | Customer Submission 1512 2016 80972
60767 62057 product 0 73000 A 10 C 0 0 Wilcox_Vented_Cord_Pendant_-_100-Black-Barn_Light_Electric_-_Dining_Room_Pendant_Lighting.jpg 20” Wilcox Vented Cord Hung Pendants, 100-Black, Narrow Slot Vent, SBK-Standard Black Cord | Photo Courtesy of Designs North West 1500 1500 73000
60868 62434 product 0 73101 A 10 C 0 0 18”_Wilcox_Uplights_975-Galvanized,_SBK-Standard_Black_Cord__Photo_Courtesy_of_Delia_Barn_and_Ridge_Light_Studio.jpg 18” Wilcox Uplights, 975-Galvanized, SBK-Standard Black Cord | Photo Courtesy of Delia Barn and Ridge Light Studio 1500 1000 73101
32296 62057 product 0 44529 A 11 C 0 0 wesco_vented_pendant_raw_copper_12in_sbk_verticalvent.jpg (5) 12" Wilcox Vented Cord Hung Pendants, 995-Raw Copper, Narrow Slot Vent, SBK-Standard Black Cord, Copper Hex Cover | Photo Courtesy of Campfire & Co. 1500 990 44529
56335 62434 product 0 68568 A 11 C 0 0 Wilcox_Uplight_Pendant_Light_-_Oil_Rubbed_Bronze_Barn_Light_Electric_-_Home_Gym.jpg 18” Wilcox Uplight, 615-Oil Rubbed Bronze, SBK-Standard Black Cord | Photo Courtesy of Homeowner 1500 1115 68568
58936 62434 product 0 71169 A 12 C 0 0 Barn_Light_Electric_-_Orange_Wilcox_Uplight_Cord_Hung_Pendant.jpg 16” Wilcox Uplights, 420-Orange, SBK-Standard Black Cord | Photo Courtesy of Top Round Fort Lauderdale 1500 769 71169
60771 62057 product 0 73004 A 12 C 0 0 Wilcox_Vented_Cord_Pendant_-_100_Black_Barn_Light_Electric_-_Dining_Room_Pendant_Lighting2.jpg 20” Wilcox Vented Cord Hung Pendants, 100-Black, Narrow Slot Vent, SBK-Standard Black Cord | Photo Courtesy of Designs North West 1500 2163 73004
47794 62434 product 0 60027 A 13 C 0 0 wesco_uplight_cord_pendant_18in_100-black_sbk2.jpg 18” Wilcox Uplight, 100-Black, SBK-Standard Black Cord | Photo Courtesy of Blanc Marine Living and L’Oeufrier 1500 2000 60027
50062 62057 product 0 62295 A 13 C 0 0 wesco_vented_cord_12in_200_white_CSBW416.jpg 12" Wilcox Vented Cord Hung Pendants, 200-White, Narrow Slot Vent, CSBW - Black & White Clot | Photo Courtesy of Home Owner 1500 1861 62295
47795 62434 product 0 60028 A 14 C 0 0 wesco_uplight_cord_pendant_18in_100_black_sbk3.jpg 18” Wilcox Uplight, 100-Black, SBK-Standard Black Cord | Photo Courtesy of Blanc Marine Living and L’Oeufrier 1500 1992 60028
60772 62057 product 0 73005 A 14 C 0 0 Wilcox_Vented_Cord_Pendant_-_100_Black_Barn_Light_Electric_-_Dining_Room_Pendant_Lighting3_l091-gr.jpg 20” Wilcox Vented Cord Hung Pendants, 100-Black, Narrow Slot Vent, SBK-Standard Black Cord | Photo Courtesy of Designs North West 1500 1061 73005
30249 62057 product 0 42472 A 15 C 0 0 barn_lighting_pendants-539x768.jpg 16" Wilcox Vented Cord Hung Pendant Lights, 100-Black, Narrow Slot Vents, TBW-Black & White Chevron Twist Cord | Photo Courtesy of Lolly Jane Blog 539 768 42472
58921 62434 product 0 71154 A 15 C 0 0 Wilcox_Uplight_Cord_Pendant_-_Orange_Barn_Light_Electric_-_Modern_Commercial_Restaurant_Interior_Lighting.png 16” Wilcox Uplights, 420-Orange, SBK-Standard Black Cord | Photo Courtesy of Top Round Fort Lauderdale 1500 870 71154
32295 62057 product 0 44528 A 16 C 0 0 wesco_vented_pendant_raw_copper_12in_sbk_verticalvent5.jpg (7) 12" Wilcox Vented Cord Hung Pendants, 995-Natural Raw Copper, Narrow Slot Vent, SBK-Standard Black Cord, Copper Hex Cover | Photo Courtesy of Campfire & Co. 1500 1029 44528
60342 62434 product 0 72575 A 16 C 0 0 Wilcox_Uplight_Pendant_-_100-Black_Barn_Light_Electric_-_Kitchen_Island_Lighting.jpg 12” Wilcox Uplights, 100-Black, SBK-Standard Black Cord | Photo Courtesy of Homeowner 1500 996 72575
20628 62057 product 0 32455 A 17 C 0 0 wesco-deep-bowl-vented-200-white.jpg 16" Wilcox Vented Cord Hung Pendant, 200-White, Circle Vent, CSB-Black Cloth Cord 1000 750 32455
21781 62434 product 0 33663 A 17 C 0 0 uplight_pendant_200_white_in-setting2.jpg 12" Wilcox Uplight, 200-White, CSGW-Gold & White Cloth Cord 600 454 33663
28564 62057 product 0 40763 A 18 C 0 0 354B1428-fall.jpg (2) 20" Wilcox Vented Cord Hung Pendant Lights, 100-Black, SBK-Standard Black Cord | Pictured with our Porcelain Enamel Dinnreware 1000 667 40763
30400 62057 product 0 42632 A 19 C 0 0 commercial_barn_lights-768x511.jpg (4) 14" Wilcox Vented Cord Hung Pendant Lights, 105-Textured Black, Circle Vents, SBK-Standard Black Cord | Photo Courtesy of Madeline Broderick Photography, The Chris & Claude Company and Café One Eight 768 511 42632
62949 62057 product 0 75182 A 20 C 0 0 16in-wilcox-vented-narrow-slot-vent-galvanized-sbk.jpg 16" Wilcox Vented Cord Hung Pendant, 975-Galvanized, Narrow Slot Vent, SBK-Standard Black Cord 1500 1125 75182
51662 62057 product 0 63895 A 21 C 0 0 DSC00305_copy.jpg 20” Wilcox Vented Cord Hung Pendants, 100-Black, Circle Vent, CSBW - Black & White Clot | Photo Courtesy of Kangaroom Systems 1140 1536 63895
60768 62057 product 0 73001 A 22 C 0 0 Wilcox_Vented_Cord_Pendant_-_100_Black_Barn_Light_Electric_-_Dining_Room_Pendant_Lighting3.jpg 20” Wilcox Vented Cord Hung Pendants, 100-Black, Narrow Slot Vent, SBK-Standard Black Cord | Photo Courtesy of Designs North West 1500 1091 73001
64486 62057 product 0 76719 A 23 D 0 0 IMG_0240-commercial-interior-restaurant-dining-room-table-wilcox-vented-uplight-cord-pendant-420-orange-975-galvanized-wire-cage-100-black-canopy-narrow-slot-vent-SBK-standard-black-cord-on.jpg 16" Wilcox Vented Cord Pendant, 420-Orange, Wire Cage, 975-Galvanized, Narrow Slot Vent, SBK-Standard Black Cord 3024 4032 76719