Can't have aggregate function in WHERE clause (Item).
Error 3096
You can't use an aggregate function in the WHERE Clause (SQL)4DMR9SH of an SQL statement29F05E5.
See Also
SQL Aggregate FunctionsM7QTSY