That is a very common error generated by UBB when MySQL isn't playing nicely.

(Of course it's impossible to tell if you've been hacked, but I think it highly unlikely.)

With my last host, I used to see that regularly. (Which is why they are my last host!)

Check your error logs. It's possible your host had a bit of down time.