These are chat archives for ushahidi/Community
may this be what i am searching for?
//Filter for all Incidents which have all of the Categories with group by and having -> only select those incidents with where array_push(self::$params, "i.id IN (SELECT incident_id FROM ".$table_prefix. "incident_category WHERE category_id IN (".$category_ids. ") GROUP BY incident_id HAVING count(incident_id) = ".$countCategory_ids.")", 'c.category_visible = 1' );