Fix the database error listing code

The query error listing was broken, trying to display only the last broken query (out of N) and actually always displaying the latest query as broken. This patch is using the global variable `$EZSQL_ERROR` defined in `wp-db.php/print_error` for iterating through all errors and listing them (adding some styling as well).