Is there anything else to the error, or is that the complete message? If that's it, then it seems to be completely missing the query itself.

What version are you upgrading from?