Update query.php

cleaner!