Added test case with HAVING AGG(C) IN (SELECT...)
Disallow aggregates in WHERE expression