Niagara County Sheriff's officials caught up with the suspect of an armed robbery after a search early Saturday morning.
A Newfane woman told deputies she and her fiancé had hosted a cookout Friday night till the weather turned bad.
The woman said her fiancé took some of the guests home, leaving her at the house with Andrew Patterson, 23, 2682 N. Main St., Newfane, his girlfriend and their 2-year-old daughter.
The hostess said after Patterson made several calls from her cell phone, the girlfriend and child walked out the door of the home. Patterson then came from a bedroom holding the woman's purse and displaying a folding knife demanding money. The woman gave him $400 and he left, telling her not to call police or she would have "more problems."
After watching Patterson, his girlfriend and their child get picked up by a waiting car at the end of the driveway, the woman called police.
Deputies said they were familiar with Patterson and after checking the woman's cell phone to see who he had called, they tracked him to an apartment building in the Town of Lockport.
When they arrived, Sheriff's Office officials found several people in the apartment injecting drugs into the their arms. Patterson, the girlfriend and the child were found in a bedroom. Deputies said hypodermic needles and drugs were scattered throughout the apartment and within easy reach of the child.
Patterson was taken into custody and charged with first-degree robbery, second-degree menacing, petit larceny and endangering the welfare of a child.
The Niagara County Drug Task Force was contacted about the activities going on inside the Town of Lockport apartment.