Minor update to query.php