oh am i so sorry to hear about your bad news.
i had over 20 kidney infections with my first pregnancy, 11 with my second and 4 with my third so i know what you are going through. it hurts like hell and my pains were as bad as labour pains.
i kept getting admitted to hospital hooked up on i.v for around a week at a time and spent most of my first pregnancy constantly in and out of maternity ward as they had no where else to put me (all the staff knew me)
i recommend cranberry tablets or juice, lots of water and get on some strong antibiotics. i ended up being on an oral suspension of cafalexin (completely forgot the spelling) right through my first pregnancy and it gave my chronic thrush
i hope it gets better soon