Stabbing stomach pains in pregnancy

Ajla • Married 👩‍❤️‍👨

I am 19 weeks pregnant and last few days I have stabbing stomach and back pain that doesn't stop even when I lay down to rest.I had UTI ,but used medication to get rid of it.I drink cranberry tea every day.I have my doctor's appointment on Friday but I am scared could it hurt the baby.I already had 2 miscarriages and I am afraid.