Fixed the broken ratings query to display the correct restaurants for ratings.