Commands by Category:
Returns error information about the last error that occurred (if any) with the last executed query.
err_num (scalar) – number of last error.
Because a failed query will not have a valid handle (id), this function
retrieves stored error information about the last executed query.