0
If everything relating to the user is within the same table then make sure you have a column that relates to something unique to the user like their ID. So then your SQL will be simple, update users_name where userID = :userid.
Then any row that has the same users ID will be updated.
Is this what you were after?