Bugfix: error in SQL query for category filter.