This query occurs when the staff member has a past or ongoing contract without a Contract Type.
Go to the Contracts area of their staff profile, and make sure each contract has a Contract Type. Delete the contract if it has been added incorrectly.
You can see how to edit contracts here: Add, edit or delete a Staff Contract