You just need to join twice, once for the referring staff and once for the backup staff.
For example:
SELECT s.Name AS StudentName, r.Name AS ReferringStaffName, b.Name AS BackupStaffName
FROM students s
LEFT JOIN staff r ON s.referringStaffID = r.staffID
LEFT JOIN staff b ON s.BackUpStaffID = b.staffID