Small modification to ur code...assuming the id in both fields are not relevant...and ur trying to select user_id and not id
SELECT p.user_id, SUM(p.point) + SUM(e.earning) AS bb
FROM points p JOIN earnings e ON p.user_id = e.user_id
WHERE (p.hit = "yes" OR p.hit = "no")
GROUP BY p.user_id