If you google the sql error, you get hits on many boards that are suffering them same problem.
Either an issue with Invision Power Board and SQL or they may have been hacked.
I dont have access to the IPB support forums so can't have a look there to see what they say the problem is.