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 "Image::nextHistoryLine()". MySQL returned error "1034: Incorrect key file for table 'oldimage'; try to repair it (localhost)".