Yellow discharge?

I had yellow discharge and the other day I had brown spotting the second day after sex and later like 3 days on and off brown spotting ? A bit of vaginal soreness