fix query in Category model. VERY fast query for users and events