(AP)—A New York City doctor has been found guilty of manslaughter in the overdose deaths of two patients.

Dr. Stan Li also was convicted of reckless endangerment concerning six patients Friday. But he was acquitted of that charge regarding another patient.

The manslaughter case was believed to be the first in New York against a doctor in an .

Li operated a Queens pain management clinic.

Prosecutors say he prescribed lethal amounts of highly addictive medications to two men who overdosed. The drugs included oxycodone and Xanax.

Li also was convicted of selling prescriptions. Authorities say some of those prescriptions were sold to an addict who later killed four people in a Long Island pharmacy holdup.

Li is from Hamilton, New Jersey. His lawyer says he was a conscientious physician misled by patients.