X067: Aggregates not allowed in WHERE clause of query.
XDB Server does not permit an aggregate function in the WHERE clause of a query. Aggregate functions should appear in a HAVING clause if used as a selection criterion.
Parent topic:
X050 - X099