That means your DB doesn't support year(). You can find for a similar function for your db or use year() in load statement that would get executed by qv. try like:
Sql Select * from <>;
This way, the db will send all the data to qv and qv will filter accordingly before it gets loaded. If you want this filter to be applied at the db itself (which is generally better option), you have to find the functions that are supported with your db and apply where clause accordingly.