Is that the only thing it says? Usually it shows you part of the SQL query too. Without that, it's hard to say what's wrong.
Did you check MySQL's docs for what that error code means? If it's like most error codes, it's completely useless ... but you never know