(PECL mongo >=0.9.0)
Mongo::lastError — Check if there was an error on the most recent db operation performed [deprecated]
Use MongoDB::lastError() instead.
This function has no parameters.
Returns the error, if there was one, or NULL.