There is no need to fire subquery twice.
Below is the update statement
update masters m, (
select id, name, added_at, master_id
from versions
order by added_at desc
) V
set
m.name = v.name,
m.added_at = v.added_at
where v.master_id = m.id;