21 weeks pregnant and very horny

I am 21 weeks pregnant and very horny but scared to have sex with husband because the last time we tried it hurt a lot and I started spotting. What should I do?? HELP!!!