Strange shit happening

I've been having unprotected sex with my boyfriend (bad choice).

My period is 3 days late and I'm having a foul smelling odor with a clear yellowish discharge. I had a miscarriage in November, and kept bleeding lightly last month here and there. Advice please.