diff --git a/include/class.canned.php b/include/class.canned.php
index affa59d9fca329791522140d50f16890bcfbd18f..a272011a55d3e878ee6e9026c6b083a9c8315364 100644
--- a/include/class.canned.php
+++ b/include/class.canned.php
@@ -226,10 +226,10 @@ extends VerySimpleModel {
             ->values_flat('canned_id', 'title');
 
         if ($deptId) {
-            $depts = Q::any(array('dept_id' => $deptId));
+            $depts = array($deptId);
             if (!$explicit)
-                $depts->add(array('dept_id' => 0));
-            $canned->filter($depts);
+                $depts[] = 0;
+            $canned->filter(array('dept_id__in' => $depts));
         }
 
         $responses = array();