#572 - Catch the edge case where HAVING is used without GROUP BY, legal in MySQL. Unfortunately untestable with SQLite