The error proved to be hell of a thing but i realized it arose as a result of table persorn(profile for user) not having a PRIMARY KEY. The tables User and Person have a relation through a FOREIGN KEY. For one to UPDATE the user the tables must be both having a primary key.