when was the last time patient 2498 got the prescription in 08/2104?
select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 2498 ) and strftime('%y-%m',prescriptions.startdate) = '2104-08' order by prescriptions.startdate desc limit 1