I assume there's a reason you don't just have $query as the first argument. You should put this reason in a comment :)