UPDATE `users`
SET `email` = CASE `email` WHEN ":email1" THEN ":email2" ELSE ":email1" END
WHERE `email` IN (":email1", ":email2")
START TRANSACTION ;
UPDATE users
SET email =
CASE
WHEN email = :email1 THEN CONCAT(' ', :email2)
WHEN email = :email2 THEN CONCAT(' ', :email1)
END
WHERE email IN (:email1,:email2) ;
UPDATE users
SET email = LTRIM(email)
WHERE email IN (CONCAT(' ', :email1), CONCAT(' ', :email2));
COMMIT ;