Both are correct. After "I didn't know (that) . . ." you are able to express both past and simple present tenses. Technically speaking, these are called noun clauses and this case (that) is omitted and the remaining part of the sentence actually functions as an object. Question: I didn't know WHAT? Answer: you had/have a child.