It looks as if you might have a corrupt calibre metadata.db database in your calibre library folder. The good news is that if you have then Calibre can rebuild a good one from data stored with the current ebooks files in its library structure.
However before recommending that you go down that route it is probably worth waiting for a comment from Kovid to confirm what is likely to be wrong.
|