Fixed stupid query mistake