Select query for get title and url of node
You don't need to make any tricks like that to compare a timestamp to the current year.

You can obtain the year of the timestamp by using the PHP date function:

date('Y', 1394010573)


will return

2014


You can obtain the current year by using the same function but without mentionning any timestamp (it will take the current date by default):

date('Y');


Knowing this, you can easily limit your query.