It is probably missing columns in the database. This isn't something I could spot in the code. If you give me a url with steps to reproduce and FTP access, then I could probably track it down.
You might try updating the queryobj.php file and changing the Debug setting to true. That might give you more information about the error to help you figure it out on your own.