Update query.php

hopefully the final fix