A physician is accused of illegally selling prescription medication from a pain management clinic in the Flushing section of Queens on Tuesday. He has been linked to the Medford pharmacy gunman David Laffer.

Stan Xuhui Li was arrested 9:30 a.m. Saturday morning at his clinic for illegal prescription drug sales and reckless endangerment. Authorities claim that Li had provided individuals with illegal prescription drugs. Li had allegedly supplied Laffer and his wife with over 2,500 painkiller pills, according to Newsday.

The investigation into Li's practices began after members of his community contacted authorities complaining about his illegal prescription practices. They had informed authorities that they were concerned Li was selling prescription for treatments that were not medically necessary. Two of Li's patients were arrested by the NYPD on Aug. 20, 2011 for selling pills outside of a pharmacy.

Over the past 2 ½ years, LI wrote more than 17,000 prescriptions for controlled substances to his pain management patients. Of these prescriptions, an estimated 65 percent were for oxycodone or other highly addictive opiate drugs. More than half of LI's patients were between the ages of 21 and 40, according to the statement by the Office of the Special Narcotics Prosecutor for the City of New York.

Michael Cornetta, a Queens resident, died about a year ago with the cause of death being linked to prescription medication supplied by Li between May 2009 and Aug. 2010. Li was arrested on Saturday in his Queens clinic.

Dr. Li was signing off on prescriptions for oxycodone and other highly addictive narcotics but in reality he was signing a death warrant for Michael Cornetta. This is another example of how the illegal distribution of prescription drugs destroys lives, said Commissioner Ray Kelly in a statement.