Hello~It could be a pinched nerve in your spine, one that leads to the liver area. If this is the case, then seeing a chiropractor would be beneficial. He/she will take some x-rays and discuss the results with you, after a few treatments you should start to feel better.
I wouldn't let it go on for too long, even if you don't see a chiropractor, you should probably see your GP, running some tests on your liver and other blood work might be a wise idea.