when is the last time patient 5865 was admitted to hospital during a year before?
select admissions.admittime from admissions where admissions.subject_id = 5865 and datetime(admissions.admittime,'start of year') = datetime(current_time,'start of year','-1 year') order by admissions.admittime desc limit 1