ผู้ป่วย 15107 เข้าโรงพยาบาลครั้งสุดท้ายผ่านห้องฉุกเฉินเมื่อ 1 ปีที่แล้ว?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
when was patient 15107 last admitted to the hospital through the emergency room admit until 1 year ago?It is not neccessary to use all the tables.
 chartevents:  row_id [ number]  subject_id [ number]  hadm_id [ number]  icustay_id [ number]  itemid [ number]  charttime [ time]  valuenum [ number]  valueuom [ text] 
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 15107 AND admissions.admission_location = 'emergency room admit' AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY admissions.admittime DESC LIMIT 1