You could have felt the kidney stones along with a burning/ painful situation during pee. For the larger part, kidneys produce such types of stones that are made up of water, calcium oxalate, and uric acid. Water is the best and first food to flush out these stones, so you should drink a lot of it. If the pain won't go away, visit a nephrologist and go through the advised treatments, if any.