what was the last drug being prescribed for patient 24971?
select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 24971 ) order by prescriptions.startdate desc limit 1