Codice PHP:
$query "SELECT YEAR(column) AS anno FROM table"