Recently, 22 people died in and around Pittsburgh after overdosing from a batch of heroin mixed with fentanyl, a powerful opiate usually found in patches given to cancer patients. Heroin containing fentanyl, which gives a more intense but potentially more dangerous high, has begun to appear in New York City, said Kati Cornell, a spokeswoman for Bridget G. Brennan, the special narcotics prosecutor for the city. An undercover officer bought fentanyl-laced heroin on Jan. 14 from a dealer in the Bronx, she said. The dealer did not warn of the mixture, which is not apparent to the user; subsequent testing revealed it. (The patches themselves had turned up in drug seizures in the city before, she said.)