For which query is it complaining?
I would guess that you user table does not have the userbar field in it, but without the actual error message, it is but a guess. Also your queries are completely screwy, you are setting two queries but only reading once, and both of those queries are pointless.
"select field from table where field=blah is only ever going to return blah or nothing.
Perhaps if you explained what you are trying to do.
|