You have to check that the PostAction (the ) hasn’t been deleted by checking that “pa.deleted_at IS NULL”.
PostAction
pa.deleted_at IS NULL