Database error

From Bwtm

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden)
from within function "MediaWikiBagOStuff:_doquery". MySQL returned error "1062: Duplicate entry 'tex214_wikidb:messageslock' for key 'objectcache.keyname' (localhost)".