Modified query in topmovies.php to use subquery