A Thursday afternoon raid by heavily-armed narcotics officers at a North Park banquet hall was the result of a months-long investigation into a series of allegedly unlawful cannabis “farmers markets” that have recently cropped up in Ocean Beach and North Park, police said Friday.

According to San Diego’s narcotics unt, at the same time as the 4:30 p.m. raid of the “Ganja Galaxy” event at Queen Bee’s Art and Cultural Center in North Park, a simultaneous search was conducted at the Carlsbad home of the 24-year-old man who allegedly organized and operated the pop-up cannabis markets.

The raid at Queen Bee’s on Ohio Street near University Avenue also resulted in the arrest of the market’s organizer and a second suspect, a 25-year-old man, Novak said. Forty-five others were detained and issued citations, mostly for possession of marijuana for sale and operating a business without a permit.

According to police, during the recent bazaars at Queen Bee’s and an unspecified location in Ocean Beach, dozens of vendors would set up tables to sell cannabis and cannabis products to hundreds of customers.

Thursday’s warrant in North Park “was purposefully served before opening so that only illegal vendors, and no customers, were present,” Novak said in a statement.

Inside the venue were about 30 vendor tables, each displaying “large amounts” of cannabis and edible products containing the drug, Novak said. Officers detained 47 people inside the hall, including the two who would later be arrested. The others were working at the vendor booths and tables.

Officers allegedly found and seized three guns stashed in the banquet hall and two others in vehicles parked at the venue. The simultaneous search of the alleged organizer’s Carlsbad home turned up four more firearms along with a “substantial amount” of cash, the lieutenant said.