BUG: code assumed query() amended its parameters in place, but it didn't