Can't have aggregate function in WHERE clause <clause>. (Error 3096)
See Also
You cannot use an
aggregate function
in the WHERE clause
of an
SQL statement
.