select u.*, s.name as status_name, s.color as status_color, max(l.lvl) as lvl, sum(pow.value) as pow
from do_user u
join do_levels l
JOIN do_user_status s ON u.status = s.id
JOIN (select * from do_user_power where type = 1) pow ON u.id = pow.uid
WHERE u.id = 5 AND u.exp >= l.exp