Fixed missing pacticipant ID in latest_pacts query