select COALESCE(sum(do_user_power.bonus),0) as user_exp_bonus
from do_user
JOIN do_levels ON do_user.exp >= do_levels.exp
JOIN do_user_status ON do_user.status = do_user_status.id
JOIN do_user_power ON do_user_power.pid = do_user.id
WHERE do_user.id = 5