Database error

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 "". MySQL returned error "1205: Lock wait timeout exceeded; try restarting transaction (127.0.0.1:33006)".