Please get it checked out if it is affecting your day to day life, because it could be something similar. If it doesn't go away in a few days, I'm going to assume it isn't a common back injury that I get from time to time at the gym from improper squat/deadlift form. Since I know you go to the gym.
They misdiagnosed me three times. I was first put in a sling for two weeks to fix the problem. That didn't work. Then I got an x-ray and got some medicine. That didn't work. Then I got 2 months of physical therapy and another x-ray after. That didn't work. Finally, I got an MRI that I couldn't even complete because after 20 minutes the pain was just too much because I had to lay completely flat (elevating my head while laying down helped eliminate some pain). The MRI was the only thing that could see the herniated disc, and that happened about 3 months after my injury.
I had to have surgery where the surgeon drilled a hole into a disc close to the site and removed the herniation that was touching my spinal cord. The relief was instant, though I still get some cramps every now and then. I've got a pretty cool scar, though.