were patient 27964 in the emergency room when they came to the hospital last time?
select count(*)>0 from admissions where admissions.subject_id = 27964 and admissions.admission_location = 'emergency room admit' and admissions.dischtime is not null order by admissions.admittime desc limit 1