entry_views: log an error if we cant retrieve from the database