querybuilder will strip where statement if surrounded by parenths
fix issues created when re-using Criteria and one-to-many queries