DATE_FORMAT(
FROM_DAYS(
TO_DAYS(NOW()) - TO_DAYS(a.date_of_birth)
),
'%Y'
) + 0 AS age