SQL Server Pilih Abaikan Dupplicates

SELECT DISTINCT(user_id) FROM messages ORDER BY id DESC LIMIT 5
Gifted Gibbon