select name from mytable where acc = '12345' and year = (select max(year) from mytable where year in( $year, $year+1 ))