I am having this same problem even though primary keys on all my tables are auto incremented. What else could cause this issue?
Here is the error text:
WordPress database error: [Duplicate entry '147' for key 1]
INSERT INTO wp_postmeta (post_id,meta_key,meta_value) VALUES ('114','_encloseme','1')
On review, I notice that the value, ‘_encloseme’is the meta_key for both meta_id #s 147 and 148. Could this be related to the above error?