The liver is your primary detox organ as well as the organ that slowly releases energy from carbohydrates and it makes so many important substances like Cholesterol which your body needs to patch up worn arteries. The liver also helps making bile to digest food and it purifies blood. If it stops working you are in a world of trouble. The kidneys work as a back up to the liver but the kidneys can not take the place of the liver.
It sounds like your liver may not be functioning properly. I remember a guy I knew who had malaria and the liver was dysfunctional. His eyes were yellow. The good news is that every cell of the liver is replaced every 8 weeks. So you can recover the liver if you reduce the load on it. If I were you I would stop drinking alcohol. I do not drink alcohol at all.
If your symptoms do not clear up right away you better see your doctor.