Hi there. I have a classified ads site, and each time a person views an ad, I add a row to my Listing_View table with some other info and the listing_id as foreign key. Now, I know how to, for instance, get the number of views for listing_id = 'xxx', but on my home page I want to display the top 5 (or 10) listings that have the most views. I looked in the MySQL manual and couldn't find anything about it, and I can't figure out how to use SELECT COUNT to do this, so I guess I have to write a PHP function. Or would it be something along the lines of "SELECT MAX(COUNT(*)) FROM Listing_View LIMIT 0,5"? I know that doesn't work, but can I do it with SQL? Anyone ever done this before? Thanks all.