There is no RANK
function is MySQL. You can use a similar approach here:
Rank function in MySQL
However, the problem is that this won't take on account "ties" in ranks. Your 2 comments stating that you just have to add Limit 5
are almost 100% accurate.
You can (and probably will) add some Limit 5
along with an order by clause, and this will almost completely solve your problem. The only thing that would be left is that Rank allows ties. Meaning that when you select where the Rank <=5, you can have 6 records or more as a result (due to them being "tied" in rank, check here for more details: http://thehobt.blogspot.com/2009/02/rownumber-rank-and-denserank.html).
So in conclusion, you should think if you really are that worried about ties. If you are, you should google if someone actually made some kind of rank function for mysql similar to t-sql's rank function. The second answer of the stackoverflow link has a kind of rank column that allows ties, you should check it. If you aren't that worried, just add some LIMIT 5
in your query as the top commenters say and you'll be fine.
EDIT: I found an EXCELLENT site that has a way of doing rank in MySQL!
http://www.artfulsoftware.com/infotree/queries.php?&bw=1024#460