Update ez_sql_sqlsrv.php

Fixed two bugs in query method. Tested with MS-SQL server 2008.