You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' topicid= WHERE sessionID='b865367fc4c0845c0682bd466e6ebf4c'' at line 1 UPDATE CF_session SET username='', userid=0, userstatus=1, time=1284041110, typelieu='TOP', forumid=, topicid= WHERE sessionID='b865367fc4c0845c0682bd466e6ebf4c'