I have a table of movies and a table of votes. Users vote for movies they like. I need to display the list of movies descending on the total votes for the movie. What I have now sort of works. The only problem is it doesn't show movies with 0 votes.
SELECT m.name, m.imdb_url, m.comment, COUNT(v.movie_id) AS votes
FROM movies m, votes v
WHERE v.movie_id=m.movie_id
GROUP BY v.movie_id
ORDER BY votes DESC