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 (63237, 64152, 62334, 64149) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00142

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": 37,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (63237,64152,62334,64149)"
        }
      }
    },
    "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
28645 64149 product 0 40844 A 0 D 0 0 static-ring-2-Light-Vanity-straight-311-jadite-RIB.jpg Static Ring Double Vanity Light, Straight Arm Mounting, 311-Jadite, RIB-Ribbed Glass 1000 1000 40844
28661 64152 product 0 40860 A 0 D 0 0 static-ring-vanities-3-light-straight-715-delphite-RIB_onue-x2.jpg Static Ring LED Triple Vanity Light, Straight Arm Mounting, 715-Delphite, RIB-Ribbed Glass 1000 1000 40860
28662 64152 product 0 40861 A 0 D 0 0 static-ring-vanities-3-light-Bantam-400-barn-red-FST_9hbz-8g.jpg Static Ring LED Triple Vanity Light, Gooseneck Mounting, 400-Barn Red, FST-Frosted Glass 1000 1000 40861
28663 64152 product 0 40862 A 0 D 0 0 static-ring-vanities-3-light-straight-arm-500-buttery-yellow-RIB_lec4-g0.jpg Static Ring LED Triple Vanity Light, Straight Arm Mounting, 500-Buttery Yellow, RIB-Ribbed Glass 1000 1000 40862
28664 64152 product 0 40863 A 0 D 0 0 static-ring-vanities-3-light-Bantam-307-emerald-FST.jpg Static Ring LED Triple Vanity Light, Gooseneck Mounting, 307-Emerald Green, FST-Frosted Glass 1000 1000 40863
65398 63237 product 0 77631 A 0 D 0 0 2-Arm-Vanities-Straight-On-arm-500-buttery-yellow-CGG-RIB.jpg Industrial Guard LED Double Vanity Light, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 77631
65624 62334 product 0 77857 A 0 D 0 0 atomic-topless-double-industrial-sconce-705-navy-490-magenta-CGG-RIB.jpg Atomic Topless LED Double Industrial Guard Sconce, 705-Navy, CGG-Standard Cast Guard, 490-Magenta, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 77857
65629 62334 product 0 77862 A 0 D 0 0 atomic-topless-double-industrial-sconce-100-black-CGG-FST-profile-alt_ury6-t6.jpg Atomic Topless LED Double Industrial Guard Sconce, 100-Black, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 77862
65928 64152 product 0 78161 A 0 D 0 0 static-ring-vanities-3-light-straight-790-lavender-FST.jpg Static Ring LED Triple Vanity Light, Straight Arm Mounting, 790-Lavender, FST-Frosted Glass 1000 1000 78161
65929 64152 product 0 78162 A 0 D 0 0 static-ring-vanities-3-light-Bantam-705-navy-bulb_bwuz-st.jpg Static Ring LED Triple Vanity Light, Gooseneck Mounting, 705-Navy, Nostalgic Edison-Style 1890 Era 40 Watt Light Bulb 1000 1000 78162
65930 64152 product 0 78163 A 0 D 0 0 static-ring-vanities-3-light-straight-arm-200-white-RIB_a76j-v8.jpg Static Ring LED Triple Vanity Light, Straight Arm Mounting, 200-White, RIB-Ribbed Glass 1000 1000 78163
24970 63237 product 0 37046 A 1 D 0 0 atomic-straight-arm-double-vanity-flared-100-black-975-galvanized-CGG-FST_ecwm-yg.jpg Industrial Guard LED Double Vanity Light, 100-Black, CGG-Standard Cast Guard, 975-Galvanized, FST-Frosted Glass 1000 1000 37046
28646 64149 product 0 40845 A 1 D 0 0 static-ring-2-Light-Vanity-Bantam-100-black-fst.jpg Static Ring Double Vanity Light, Gooseneck Mounting, 100-Black, FST-Frosted Glass 1000 1000 40845
28647 64149 product 0 40846 A 2 D 0 0 static-ring-2-Light-Vanity-straight-arn-buttery-yellow.jpg Static Ring Double Vanity Light, Straight Arm Mounting, 500-Buttery Yellow, RIB-Ribbed Glass 1000 1000 40846
32152 63237 product 0 44385 A 2 D 0 0 2-Arm-Vanities-Straight-On-arm-200-white-WGG-RIB_hpxk-cs.jpg Industrial Guard LED Double Vanity Light, 200-White, WGG-Wire Guard, RIB-Ribbed Glass 1000 1000 44385
65623 62334 product 0 77856 A 2 D 0 0 atomic-topless-double-industrial-sconce-500-buttery-yellow-CGG-RIB.jpg Atomic Topless LED Double Industrial Guard Sconce, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 77856
28648 64149 product 0 40847 A 3 D 0 0 static-ring-2-Light-Vanity-Bantam-307-FST.jpg Static Ring Double Vanity Light, Gooseneck Mounting, 307-Emerald Green, FST-Frosted Glass 1000 1000 40847
53594 62334 product 0 65827 A 3 D 0 0 atomic-topless-double-industrial-sconce-100-black-WGG-RIB.jpg Atomic Topless LED Double Industrial Guard Sconce, 100-Black, WGG-Wire Guard, RIB-Ribbed Glass 1000 1000 65827
65396 63237 product 0 77629 A 3 D 0 0 2-Arm-Vanities-Straight-On-arm-400-barn-Red-CGG-FST_qrmu-2l.jpg Industrial Guard LED Double Vanity Light, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 77629
21287 62334 product 0 33168 A 4 D 0 0 atomic-topless-double-industrial-sconce-200-white-CGG-FST.jpg Atomic Topless LED Double Industrial Guard Sconce, 200-White, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 33168
28649 64149 product 0 40848 A 4 D 0 0 static-ring-2-Light-Vanity-straight-arm-480-blush-pink-FST.jpg Static Ring Double Vanity Light, Straight Arm Mounting, 480-Blush Pink, FST-Frosted Glass 1000 1000 40848
65395 63237 product 0 77628 A 5 D 0 0 2-Arm-Vanities-Straight-On-arm-307-emerald-CGG-RIB_m7om-uw.jpg Industrial Guard LED Double Vanity Light, 307-Emerald Green, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 77628
65630 62334 product 0 77863 A 5 D 0 0 atomic-topless-double-industrial-sconce-300-dark-green-CGG-FST_8koc-22.jpg Atomic Topless LED Double Industrial Guard Sconce, 300-Dark Green, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 77863
65920 64149 product 0 78153 A 5 D 0 0 static-ring-2-Light-Vanity-bantam-705-navy-bulb.jpg Static Ring Double Vanity Light, Gooseneck Mounting, 705-Navy, Nostalgic Edison-Style 1890 Era 40 Watt Light Bulb 1000 1000 78153
65921 64149 product 0 78154 A 5 D 0 0 static-ring-2-Light-Vanity-200-white-rib.jpg Static Ring Double Vanity Light, Straight Arm Mounting, 200-White, RIB-Ribbed Glass 1000 1000 78154
28762 64149 product 0 40961 A 6 C 0 0 galvanized-ring-vanity.jpg Static Ring Double Vanity Light, Straight Arm Mounting, 975-Galvanized 700 500 40961
65399 63237 product 0 77632 A 6 D 0 0 2-Arm-Vanities-Straight-On-arm-705-navy-CGG-CLR_z7rk-to.jpg Industrial Guard LED Double Vanity Light, 705-Navy, CGG-Standard Cast Guard, CLR-Clear Glass 1000 1000 77632
65626 62334 product 0 77859 A 6 D 0 0 atomic-topless-double-industrial-sconce-715-delphite-CGG-FST.jpg Atomic Topless LED Double Industrial Guard Sconce, 715-Delphite, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 77859
21288 62334 product 0 33169 A 7 D 0 0 atomic-topless-double-industrial-sconce-400-barn-red-CGG-FST_dyc1-66.jpg Atomic Topless LED Double Industrial Guard Sconce, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 33169
65625 62334 product 0 77858 A 8 D 0 0 atomic-topless-double-industrial-sconce-705-navy-CGG-FST_he1g-6t.jpg Atomic Topless LED Double Industrial Guard Sconce, 705-Navy, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 77858
60758 62334 product 0 72991 A 9 C 0 0 Atomic_Topless_LED_Double_Industrial_Guard_Sconce_-_Barn_Light_Electric_-_Kitchen_Lighting.jpg Atomic Topless Double Industrial Guard Sconce, 715-PTM Delphite Blue, WGG-Wire Guard, Frosted Glass (Also pictured: Dino 3-Light Stem Mount Pendant) | Photo Courtesy of Build with Coastal in Eastham, Massachusetts 2855 1868 72991
60759 62334 product 0 72992 A 10 C 0 0 Atomic_Topless_LED_Double_Industrial_Guard_Sconce_-_Barn_Light_Electric_-_Farmhouse_Kitchen_Wall_Sconce_Lighting.jpg Atomic Topless Double Industrial Guard Sconce, 715-PTM Delphite Blue, WGG-Wire Guard, Frosted Glass (Also pictured: Dino 3-Light Stem Mount Pendant) | Photo Courtesy of Build with Coastal in Eastham, Massachusetts 5760 3840 72992
60760 62334 product 0 72993 A 11 C 0 0 Atomic_Topless_LED_Double_Industrial_Guard_Sconce_-_Barn_Light_Electric_-_Living_Room_Lighting.jpeg Atomic Topless Double Industrial Guard Sconce, 715-PTM Delphite Blue, WGG-Wire Guard, Frosted Glass | Photo Courtesy of Build with Coastal in Eastham, Massachusetts 1736 1736 72993
60764 62334 product 0 72997 A 12 C 0 0 Atomic_Topless_LED_Industrial_Guard_Sconce_-_Barn_Light_Electric_-_Coastal_Living_Room_Lighting.jpg Atomic Topless Double Industrial Guard Sconce, 715-PTM Delphite Blue, WGG-Wire Guard, Frosted Glass | Photo Courtesy of Build with Coastal in Eastham, Massachusetts 1019 679 72997
60765 62334 product 0 72998 A 13 C 0 0 Atomic_Topless_LED_Industrial_Guard_Sconce_-_Barn_Light_Electric_-_Kitchen_Lighting.jpg Atomic Topless Double Industrial Guard Sconce, 715-PTM Delphite Blue, WGG-Wire Guard, Frosted Glass | Photo Courtesy of Build with Coastal in Eastham, Massachusetts 1019 679 72998
60766 62334 product 0 72999 A 14 C 0 0 Atomic_Topless_LED_Industrial_Guard_Sconce_-_Barn_Light_Electric_-_Living_Room_Lighting.jpg Atomic Topless Double Industrial Guard Sconce, 715-PTM Delphite Blue, WGG-Wire Guard, Frosted Glass | Photo Courtesy of Build with Coastal in Eastham, Massachusetts 1019 679 72999
66474 62334 product 0 78707 A 14 C 0 0 IMG_5714-residential-interior-lighting-on-bathroom-vanity-Atomic-Topless-LED-Double-Industrial-Guard-Sconce-TGG-200-White-Clear-Glass.jpg Atomic Topless LED Double Industrial Guard Sconce, Heavy Duty Cast Guard, 200-White, Clear Glass | Customer Submission 3024 4032 78707