Recoverable fatal error on nodes after leaving Maintenance mode
You probably included an object as an argument to one of your query conditions. If you print_r the $args at the line number in the database.inc file, you find out what the placeholders are set to.