Vous souhaitez une agrégation : select user, count(*) clicks from users group by user order by clicks desc