I know if a pitcher leaves a runner on base when they leave the game and that runner scores, the pitcher that left the runner on base gets the earned run. However who would get the loss if that run gave the opposing team the lead? Would it be the pitcher on the mound or the pitcher that received the earned run?