I've been spotting for 7 days no std

Started spitting on the 17th of October it's the 23 and I'm still spotting went to the doctors I don't have an std what could it be 
​Oh yea I had sex on the 10 th