Fix the self-reference FK inserting a row failure

Where the inserted row has the fk reference to the self-join.