YARMOUTH PORT — A Yarmouth Port man has been arrested and charged with attempted murder in connection with a January stabbing in Falmouth.

Michael O’Connor, 34, pleaded not guilty Tuesday to that charge and charges of assault and battery with a dangerous weapon, assault and battery with serious bodily injury and conspiracy to violate the state's drug law, according to Falmouth District Court documents. He was ordered held until a dangerousness hearing Thursday, documents show.

Falmouth police responded to 774 Old Barnstable Road on the night of Jan. 15 and found that Stephen Sanders, 29, had been stabbed four times and driven to Falmouth Hospital.

Police believe that O’Connor; Elangwa Shaidi, 33, of East Falmouth; and Carl Gonsalves, 49, of Falmouth, had planned to rob Sanders during a drug deal, and that Shaidi carried out the stabbing.

Shaidi and Gonsalves were arraigned previously on the same four charges as O'Connor and also were ordered held for dangerousness hearings Thursday, court records show.

Falmouth police had issued a warrant for O’Connor, and he was captured by Yarmouth police at a house on Setucket Road in Yarmouth Port at about 1:45 p.m. Monday, according to a statement from the Yarmouth Police Department. He tried to flee when police surrounded the house but went back inside after seeing an officer, the statement says. Police made a forced entry into the house and found him hiding in the basement, according to the statement.

— Follow Kristen Young on Twitter: @KristenCCT.