Exactly this.
And if you're testing, you've got to test every query combination anyways. It's not just syntax that can be wrong, but logic and performance.