diff --git a/include/class.canned.php b/include/class.canned.php index 8ba175ba118ee1a7a74e0887ce5933ee0243f253..399b490d3a9cf3c1832fc4892c66ccd4aed06f6f 100644 --- a/include/class.canned.php +++ b/include/class.canned.php @@ -100,8 +100,7 @@ class Canned { if (!$this->_filters) { $this->_filters = array(); $res = db_query( - 'SELECT DISTINCT name' - .' FROM '.EMAIL_FILTER_TABLE + 'SELECT name FROM '.EMAIL_FILTER_TABLE .' WHERE canned_response_id = '.db_input($this->getId()) .' ORDER BY name'); while ($row = db_fetch_row($res))