Můžete použít MySQL TIMESTAMPDIFF() funkce: SELECT TIMESTAMPDIFF(YEAR, dob, CURRENT_DATE) AS age FROM dle_users