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 (64150, 64151, 61416, 63234) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00113

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": 46,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (64150,64151,61416,63234)"
        }
      }
    },
    "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
16044 61416 product 0 27564 A 0 D 0 0 double-market-sconce-flared-100-black-490-magenta-CGG-RIB.jpg Double Market Industrial Guard Sconce, 100-Black, Flared Shade, CGG-Standard Cast Guard, 490-Magenta, RIB-Ribbed Glass 1000 1000 27564
28651 64150 product 0 40850 A 0 D 0 0 static-ring-2-Light-Vanity-Bantam-100-black-fst_it3d-3j.jpg Static Ring LED Double Vanity Light, Gooseneck Mounting, 100-Black, FST-Frosted Glass 1000 1000 40850
28652 64150 product 0 40851 A 0 D 0 0 static-ring-2-Light-Vanity-straight-arm-480-blush-pink-FST_eqds-57.jpg Static Ring LED Double Vanity Light, Straight Arm Mounting, 480-Blush Pink, FST-Frosted Glass 1000 1000 40851
28653 64150 product 0 40852 A 0 D 0 0 static-ring-2-Light-Vanity-Bantam-307-FST_34zm-uv.jpg Static Ring LED Double Vanity Light, Gooseneck Mounting, 307-Emerald Green, FST-Frosted Glass 1000 1000 40852
28654 64150 product 0 40853 A 0 D 0 0 static-ring-2-Light-Vanity-200-white-rib.jpg Static Ring LED Double Vanity Light, Straight Arm Mounting, 200-White, RIB-Ribbed Glass 1000 1000 40853
28656 64151 product 0 40855 A 0 D 0 0 static-ring-vanities-3-light-Bantam-100-black-bulb.jpg Static Ring Triple Vanity Light, Gooseneck Mounting, 100-Black, Nostalgic Edison-Style 1890 Era 40 Watt Light Bulb 1000 1000 40855
65326 63234 product 0 77559 A 0 D 0 0 CGG-vanities-3-light-straight-arm-topless-400-barn-red-CGG-FST.jpg Industrial Guard Triple Vanity Light, 400-Barn Red, Topless Shade, CGG-Standard Cast Gard, FST-Frosted Glass 1000 1000 77559
65922 64150 product 0 78155 A 0 D 0 0 static-ring-2-Light-Vanity-Bantam0400-barn-red-bulb.jpg Static Ring LED Double Vanity Light, Gooseneck Mounting, 400-Barn Red, Nostalgic Edison-Style 1890 Era 40 Watt Light Bulb 1000 1000 78155
65923 64150 product 0 78156 A 0 D 0 0 static-ring-2-Light-Vanity-straight-311-jadite-RIB.jpg Static Ring LED Double Vanity Light, Straight Arm Mounting, 311-Jadite, RIB-Ribbed Glass 1000 1000 78156
65924 64150 product 0 78157 A 0 D 0 0 static-ring-2-Light-Vanity-bantam-705-navy-bulb_zklb-xt.jpg Static Ring LED Double Vanity Light, Gooseneck Mounting, 705-Navy, Nostalgic Edison-Style 1890 Era 40 Watt Light Bulb 1000 1000 78157
66470 63234 product 0 78703 A 0 C 0 0 IMG_1879-residential-interior-lighting-on-bathroom-vanity-Industrial-Guard-Triple-Vanity-Light-715-Delphite-Blue-No-Shade-CGG-Clear-Glass.jpg Industrial Guard Triple Vanity Light, 715-Delphite Blue, No Shade, Standard Cast Guard, Clear Glass | Customer Submission 3009 3866 78703
24962 63234 product 0 37038 A 1 D 0 0 CGG-vanities-3-light-straight-arm-flared-100-black-CGG-RIB.jpg Industrial Guard Triple Vanity Light, 100-Black, Flared Shade, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 37038
28657 64151 product 0 40856 A 1 D 0 0 static-ring-vanities-3-light-straight-arm-500-buttery-yellow-RIB.jpg Static Ring Triple Vanity Light, Straight Arm Mounting, 500-Buttery Yellow, RIB-Ribbed Glass 1000 1000 40856
71037 61416 product 0 83270 A 1 D 0 0 double-market-industrial-sconce-topless-630-Beige.jpg Double Market Industrial Guard Sconce, 630-Beige, Topless Shade, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 83270
16054 61416 product 0 27574 A 2 D 0 0 double-market-industrial-sconce-topless-705-navy-CGG-RIB.jpg Double Market Industrial Guard Sconce, 705-Navy, Topless Shade, CGG-Standard Cast Guard, RIB-Ribbed 1000 1000 27574
65328 63234 product 0 77561 A 2 D 0 0 CGG-vanities-3-light-straight-arm-warehouse-715-delphite-WGG-FST.jpg Industrial Guard Triple Vanity Light, 715-Delphite, Warehouse Shade, WGG-Wire Guard, FST-Frosted Glass 1000 1000 77561
65925 64151 product 0 78158 A 2 D 0 0 static-ring-vanities-3-light-Bantam-307-emerald-FST.jpg Static Ring Triple Vanity Light, Gooseneck Mounting, 307-Emerald Green, FST-Frosted Glass 1000 1000 78158
28659 64151 product 0 40858 A 3 D 0 0 static-ring-vanities-3-light-straight-715-delphite-RIB.jpg Static Ring Triple Vanity Light, Straight Arm Mounting, 715-Delphite, RIB-Ribbed Glass 1000 1000 40858
32122 61416 product 0 44355 A 3 D 0 0 double-market-industrial-sconce-topless-400-barn-red-CGG-FST.jpg Double Market Industrial Guard Sconce, 400-Barn Red, Topless Shade, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 44355
65325 63234 product 0 77558 A 3 D 0 0 CGG-vanities-3-light-straight-arm-topless-307-emerald-green-CGG-RIB.jpg Industrial Guard Triple Vanity Light, 307-Emerald Green, Topless Shade, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 77558
28658 64151 product 0 40857 A 4 D 0 0 static-ring-vanities-3-light-Bantam-400-barn-red-FST.jpg Static Ring Triple Vanity Light, Gooseneck Mounting, 400-Barn Red, FST-Frosted Glass 1000 1000 40857
32120 61416 product 0 44353 A 4 D 0 0 double-market-industrial-sconce-flared-500-buttery-yellow-CGG-RIB.jpg Double Market Industrial Guard Sconce, 500-Buttery Yellow, Flared Shade, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 44353
32153 63234 product 0 44386 A 4 D 0 0 CGG-vanities-3-light-straight-arm-flared-200-white-TGG-FST.jpg Industrial Guard Triple Vanity Light, 200-White, Flared Shade, TGG-Heavy Duty Cast Guard, FST-Frosted Glass 1000 1000 44386
16078 61416 product 0 27598 A 5 D 0 0 double-market-sconce-warehouse-100-black-975-galvanized-CGG-FST.jpg Double Market Industrial Guard Sconce, 100-Black, Warehouse Shade, CGG-Standard Cast Guard, 975-Galvanized, FST-Frosted Glass 1000 1000 27598
65327 63234 product 0 77560 A 5 D 0 0 CGG-vanities-3-light-straight-arm-topless-500-buttery-yellow-CGG-RIB.jpg Industrial Guard Triple Vanity Light, 500-Buttery Yellow, Topless Shade, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 77560
65926 64151 product 0 78159 A 5 D 0 0 static-ring-vanities-3-light-straight-arm-200-white-RIB.jpg Static Ring Triple Vanity Light, Straight Arm Mounting, 200-White, RIB-Ribbed Glass 1000 1000 78159
66468 63234 product 0 78701 A 5 C 0 0 IMG_0851-residential-interior-lighting-on-bathroom-vanity-Industrial-Guard-Triple-Vanity-Light-715-Delphite-Blue-No-Shade-CGG-Clear-Glass.jpg Industrial Guard Triple Vanity Light, 715-Delphite Blue, No Shade, Standard Cast Guard, Clear Glass | Customer Submission 4032 1690 78701
65576 61416 product 0 77809 A 6 D 0 0 double-market-industrial-sconce-warehouse-200-white-WGG-RIB.jpg Double Market Industrial Guard Sconce, 200-White, Warehouse Shade, WGG-Wire Guard, RIB-Ribbed Glass 1000 1000 77809
65927 64151 product 0 78160 A 6 D 0 0 static-ring-vanities-3-light-Bantam-705-navy-bulb.jpg Static Ring Triple Vanity Light, Gooseneck Mounting, 705-Navy, Nostalgic Edison-Style 1890 Era 40 Watt Light Bulb 1000 1000 78160
32121 61416 product 0 44354 A 7 D 0 0 double-market-industrial-sconce-flared-307-TGG-RIB.jpg Double Market Industrial Guard Sconce, 307-Emerald Green, Flared Shade, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass 1000 1000 44354
53423 64151 product 0 65656 A 7 C 0 0 static_ring_triple_vanity_light_barnred_WVS3gooseneck_noglass3.jpg Static Ring Triple Vanity Light, Straight Arm Mounting, 400-Barn Red | Photo Courtesy of Stacy Wolfe Photography and Elle Designs 5365 3581 65656
51993 61416 product 0 64226 A 8 C 0 0 Raili_Clasen_-_Double_Market_Industrial_Guard_Sconce_-_Sunflower_-_Bedroom.png Double Market Industrial Guard Sconce, 570-Sunflower, No Shade, CGG-Standard Cast Guard, CLR-Clear Glass | Photo Courtesy of Raili CA Design 472 593 64226
53424 64151 product 0 65657 A 8 C 0 0 static_ring_triple_vanity_light_barnred_WVS3gooseneck_noglass2.jpg Static Ring Triple Vanity Light, Straight Arm Mounting, 400-Barn Red | Photo Courtesy of Stacy Wolfe Photography and Elle Designs 5365 3581 65657
28763 64151 product 0 40962 A 9 C 0 0 bronze-ring-vanity.jpg Static Ring Triple Vanity Light, Gooseneck Mounting, 600-Bronze 700 500 40962
61547 61416 product 0 73780 A 9 C 0 0 Double_Market_Industrial_Guard_Sconce_-_Barn_Light_Electric_-_Nautical_Bathroom_Vanity_Lighting.jpg Double Market Industrial Guard Sconce, 200-White, Warehouse Shade, WGG-Wire Guard, CLR-Clear Guard | Photo Courtesy of Parker Jones Interiors 1536 2049 73780
61353 61416 product 0 73586 A 10 C 0 0 Double_Market_Industrial_Guard_Sconce_-_Barn_Light_Electric_-_Bathroom_Vanity_Lighting.jpg Double Market Industrial Guard Sconce, 307-Emerald, No Shade, CGG-Standard Cast Guard, FST-Frosted Guard | Photo Courtesy of Rachel Reider Interiors 667 1000 73586
61548 61416 product 0 73781 A 11 C 0 0 Double_Market_Industrial_Guard_Sconce_-_Barn_Light_Electric_-_Bathroom_Vanity_Lighting_tuhi-r5.jpg Double Market Industrial Guard Sconce, 200-White, Warehouse Shade, WGG-Wire Guard, CLR-Clear Guard | Photo Courtesy of Parker Jones Interiors 1536 2049 73781
32123 61416 product 0 44356 A 12 C 0 0 atomic_wall_sconces_rustic_wall_lights-1024x877.jpg Double Market Industrial Guard Sconce, 400-Barn Red, No Shade, TGG-Heavy Duty Cast Guard, RIB-Ribbed Guard 1024 877 44356
32433 61416 product 0 44666 A 13 C 0 0 atomic_double_market_industrial_guard_sconce_barn_red_WGG_clear2.jpg (2) Double Market Industrial Guard Sconces, 400-Barn Red, WH-Warehouse Shade, WGG-Wire Guard, CLR-Clear Glass | Photo Courtesy of Harper & Hicks 1500 2249 44666
61554 61416 product 0 73787 A 14 C 0 0 Double_Market_Industrial_Guard_Sconce_-_700_Royal_Blue_Barn_Light_Electric_-_Bathroom_Vanity_Sconce.jpg Double Market Industrial Guard Sconce, 700-Royal Blue, Warehouse Shade, WGG-Wire Guard, RIB-Ribbed Guard | Photo Courtesy of Homeowner 1500 2000 73787
61553 61416 product 0 73786 A 15 C 0 0 Double_Market_Industrial_Guard_Sconce_-_700_Royal_Blue_Barn_Light_Electric_-_Bathroom_Lighting.jpg Double Market Industrial Guard Sconce, 700-Royal Blue, Warehouse Shade, WGG-Wire Guard, RIB-Ribbed Guard | Photo Courtesy of Homeowner 1500 2000 73786
37572 61416 product 0 49805 A 16 C 0 0 rustic_wall_sconce_commercial_lighting-512x768.jpg Double Market Industrial Guard Sconce, 605-Rust, FS-Flared Shade | Courtesy of The Salvage Room 512 768 49805
65473 61416 product 0 77706 A 17 C 0 0 residential-interior-lighting-bathroom-vanity-Double-Market-Industrial-Guard-Sconce-705-Navy-Warehouse-CGG-Clear-Glass.jpg Double Market Industrial Guard Sconce - 705-Navy, Warehouse, Standard Cast Guard, Clear Glass | Photo Courtesy of Homeowner 1500 2000 77706
62273 61416 product 0 74506 A 18 C 0 0 Double_Market_Industrial_Guard_Sconce_105_TexturedBlack_CFF_ClearGlass.jpg Double Market Industrial Guard Sconce, 105-Textured Black, CLR-Clear Glass | Photo Courtesy of J&J Photography 1500 2250 74506
65276 61416 product 0 77509 A 19 C 0 0 residential-interior-lighting-bathroom-vanity-Double-Market-Industrial-Guard-Sconce-100-Black-Flared-Wire-Guard-Clear-Glass.jpg Double Market Industrial Guard Sconce, 100-Black, Flared Wire Guard, Clear Glass | Photo Courtesy of Homeowner 1500 1125 77509
65635 61416 product 0 77868 A 20 C 0 0 residential-interior-lighting-bathroom-vanity-Double-Market-Industrial-Guard-Sconce-705-Navy-Warehouse-CGG-Clear-Glass-Towel-Bar-Toilet-Paper-Holder-705-Navy.jpg Double Market Industrial Guard Sconce - 705-Navy, Warehouse, Standard Cast Guard, Clear Glass | Photo Courtesy of Homeowner 1500 2000 77868