SQL Server Wybierz ignoruj ​​dupplicates

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