It indicates a problem in your database.
First backup the metadata.db file from your calibre library folder. Then open a command prompt, change to the calibre library folder and run
calibre-debug --reinitialize-db metadata.db
That might be able to auto-fix your database.
The other alternative is to rebuild the database by clicking the calibre button on the toolbar and choosing Library maintenance->Restore database
|