SELECT userid, username, COUNT(*) as weekpostcount FROM post WHERE dateline > (UNIX_TIMESTAMP() - 7*24*60*60) GROUP BY username, userid ORDER BY weekpostcount DESC LIMIT 5