The correct answer is C. had.
The sentence is in the past tense, so the verb "have" must be conjugated in the past tense as well. The past tense of "have" is "had."
The other options are incorrect because they are not in the past tense. Option A, "am having," is in the present continuous tense. Option B, "was having," is in the past continuous tense. Option D, "have," is in the present tense.
Here is a diagram that shows the conjugation of the verb "have" in the simple tenses:
Tense | Singular | Plural ------- | -------- | -------- Present | I have | We have Past | I had | We had Future | I will have | We will have
I hope this helps!