Oh dear, this situation is not good. The child, if a British citizen of course can stay. But your friend, even as the mother does not have. Their are some visas I think to do with being the main carer for a child, but it's very complicated, and I'm not sure she would have the right to work. Hopeful...