Change having_filters to query_having; allow having clauses even if no group by