Make sure bindings for WHERE and HAVING clauses are always ordered correctly.