You just pointed out something else that might be at work.
Ambiguity is one thing, and to be avoided, and consistency is another, to be sought.
Specifically, you're using inconsistent key field names, id in one case and SexID in another. Instead, name all key fields, both primary keys and...