Bladder infection while pregnant?!

Tiffany • Christian. Mother of 3. 3 living and 1 angel. 10 years together married 7.
I have a bladder infection that also went into my kidneys. Very painful, I am wondering has anyone else had this while pregnant!? I  5.5 weeks preggo and worried that antibiotics they have will miscarry. Also I'm in such horrible pain, I thought I was going to force the baby out. Anyone else had this??