catch error when counting records, fixes issues with invalid filters in widgets
throw error for HAVING filters, suggest using fields