Update query.php

Fixed with NA, align and headers.
Check it out!