Shouldn't this be `$mongo->{$config['db.db']}->results->findOne();`  The db name is configurable, not the collection name.