Added fix for @year_list SQL