Fixed MySQL UPDATE statement bugs.