Fix RecordSet->where() creating a having clause instead of a where
clause