php.ini mysql.trace_mode directive is now taking into account when execute query

If mysql.trace_mode is enabled in php.ini then mysql_query() will produce a warning that will be handled by Kohana::error_handler() and "converted" to an ErrorException.
This patch make incorrect query to produce ErrorException even if mysql.trace_mode directive is disabled and then "convert" it into Database_Exception.