Updated so that a user can choose 'auto' for the category rating instead of manually setting the number of stars to show. Manually setting the number of stars will still override the automatic settings, though.
Fixed this query so it now pulls the correct rating for each category as opposed to just the first row like it was doing before. Stupid. Stupid. Stupid.