Hello jasonharry 1967,
If you haven't been to the doctor you need to go and be checked for a kidney infection.
If you do have an infection you will be treated with antibiotics.
The doctor will have you urinate in a cup to test your urine.
If you do not have an infection you might have a kidney stone and will need treatement for that.
The only way to know for sure is to see your doctor and have a test done.