I have a table which includes id and name
--- ----- id name --- ----- 1 pete
My scenarios looks like this
$sql
You cannot fetch the previous name unless you save it to your table as a backup.
If you want to achieve this create one more column in your table and save the current name before updating to the new one.