Start
select appointmentid from appointment order by start desc limit 1
What is the patient id of that appointment?
select patient from appointment order by start desc limit 1
What is their name?
select t1.name from patient as t1 join appointment as t2 on t1.ssn = t2.patient order by t2.start desc limit 1