2nd fix for the ratings query