diff --git a/api/src/Contacts/Sql.php b/api/src/Contacts/Sql.php index 4a875457f2..263dce9d51 100644 --- a/api/src/Contacts/Sql.php +++ b/api/src/Contacts/Sql.php @@ -662,7 +662,7 @@ class Sql extends Api\Storage } foreach($GLOBALS['egw']->categories->return_all_children($cat_id) as $cat) { - $cat_filter[] = $this->db->concat("','",cat_id,"','")." $not LIKE '%,$cat,%'"; + $cat_filter[] = $this->db->concat("','", 'cat_id', "','")." $not LIKE '%,$cat,%'"; } $cfilter = '('.implode(' OR ',$cat_filter).')'; if(!empty($not))