The comedian Redd Foxx , whom she had once helped out of a financial jam , invited her to Los Angeles in 1975 to play the gospel singer Mahalia Jackson in '' Selma , '' a musical about civil rights he was producing .