Do _not_ perform two queries. Use the following:
http://dev.mysql.com/doc/refman/5.1/...duplicate.html
For an in-depth example look at the provided link.
Edit: Also, you do not need to repeat the SET statement all the time, Schwabba. Look here:
http://dev.mysql.com/doc/refman/5.1/en/update.html
Edit2: If you have a where-clause restricting the query to a specific protocol, you don't need to update these, since it has no effect.
__________________