Your db is corrupted. It has entries in that column for book ids that no longer exist in the database. You can use the library maintenance tool (click the calibre icon ont he toolbar and choose library maintenenace->rebuild) to rebuild the database from backups.
|