Do you pray with heretics?
When I invite people to a community meeting, I don’t have a clue who is praying out there.
And, yes, I have knowingly in the military prayed alongside Mormons, SDAs, etc. It’s the nature of a group gathering.
Prayer with sinners is approved. Eating their sacrifices to strange gods isn’t.