I need to select only the year from the record date.
SELECT *, DATE_FORMAT(\'release\',\'%Y\') AS release_year FROM books
but doesnt work.
Don't put release in quotes. You're trying to extract the year from a literal string 'release', not the value in the column `release`.
release
'release'
And as @invisal states, RELEASE is a reserved word in MySQL, so you have to delimit it with back-ticks.