Help!

So like five months ago my boyfriend and I tried anal. Didn't really work he only went maybe an inch in and it hurt too bad so we stopped. Anyways about two months ago when I use the bathroom to go number 2 it hurts really really bad and there is some bright red blood in the toilet when I finish. What does this mean? Is it something serious or maybe just hemorrhoids? Any ideas?