Help, 23 weeks pregnant

I have a urine infection and the anti biotics are not working, like I'm immune to them or whatever, my nunni is constantly stinging especially when I do a wee every 5 minutes, I'm drinking tons of cranberry juice and nothing is helping, what do I do and will it harm my unborn baby?