That happens when the MySQL server drops a query (for whatever reason; traffic too high, etc.) in the middle of a forum action, because SMF does not use SQL transactions. The bottom line is SMF, as are the other options for forum software, is really buggy (yes, I consider not using SQL transactions a bug). I really wish there were better choices in the forum software world.