What does it mean if your guinea pig has sticky stuff coming out of his butt?

It's got diarrhoea.
i don't no really but that's happening to my guinea pig and its always after it humps my other guinea pig. i wonder if its something to do with that cos i no my guinea does not have diarrhoea.