[ticket/12387] mssql_query return true if a select query returns 0 row

PHPBB3-12387
[ticket/12387] Remove unnecessary checks

PHPBB3-12387
[ticket/12387] Use $this->open_queries with the mysqli driver

PHPBB3-12387