var _ndnq = _ndnq || []; _ndnq.push([’embed’]);

OAKLAND — Twenty people were arrested and drugs, guns and illegal slot machines were seized Wednesday morning after Alameda County sheriff’s deputies raided an East Oakland building that one official called a “recipe for disaster.”

A 5-year-old child found at the building was taken into protective custody. It wasn’t known if the child lived there or exactly how many people resided at the 2,300-square-foot building in the 6600 block of Bancroft Avenue.

The 4 a.m. raid involved Alameda County deputies, investigators and the sheriff’s SWAT team.

Sheriff’s Sgt. Ray Kelly said the raids culminated an investigation that began after authorities received information of illegal activity, including drug sales and weapons possession.

Kelly said deputies seized a quantity of methamphetamine, several guns, two stolen vehicles and eight illegal slot machines that people were regularly playing.

No one was hurt in the raids.

Kelly said the arrests were for a variety of offenses, including probation violations and being under the influence of drugs.

Kelly said deputies found that the building’s occupants were pirating electricity and that there was also a significant sewage leak. Besides the illegal activity, he said the site also was a “public safety concern. It was a recipe for disaster.”

Kelly said the majority of those detained lived in the building, and that city officials were in the process of red-tagging the structure, officials said.

The property, described as undocumented with unsafe wiring and a sewage spill, was listed Wednesday as under pending investigation in the city planning and building department’s enforcement database.

A pair of blight complaints were logged in the database last year. In January 2016, a complaint was filed about trash on the property, but there was no response recorded from the property owner. In February 2016, a complaint about graffiti, broken windows covered in plywood and “that someone may be living in the building,” was unfounded.

Staff writer George Kelly contributed to this report.