That's a bad one. Usually that happens when MySQL dies or is stopped during a write. Basically, you might need to end up recreating the table. What you'd have to do is dump out the ubbt_POSTS table to a backup and then delete the table. Then you'd need to grab the create table syntax for it out of the createtable.php script and recreate the table and then reimport the posts back into it.