You're on the right track, but you need to specify a JOIN between the tables: UPDATE tweets JOIN users ON tweets.user_id = users.user_id SET ...
www.google.com.tw