Painful urination can have several causes. Infection or kidney stones are the most common. Has there been any change in the color or smell of the urine? Did they check for blood in the urine?
The other possibility I can think of is prostate stones. Did the doctor check you for these as well?