I pieced this query together using some stuff I found on the web. I’m afraid to run it because once an update is done it can’t be undone. Does this look good to you?
Thanks!
UPDATE users u, (SELECT uID AS selected_uID FROM users) AS u2 SET u.guide = u2.selected_uID
WHERE
u.member = ‘No’ and
u.guide !=110 and
u.guide!=0 and
u.guide not in (select uID from users);