When its yellow like that it is because there is no or little bile in it. Your liver may be clogged up or you are not producing enough bile. This will cause you pain because you are not digesting food properly. Try taking some digestive enzymes and see if it helps.