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 ' lastip = '107.21.156.140' where id = '1140'' at line 1