From 94111c2d087952c3f14a78fc977765b965f0632b Mon Sep 17 00:00:00 2001 From: Jared Hancock <gravydish@gmail.com> Date: Sun, 22 Jul 2012 14:32:22 -0500 Subject: [PATCH] No need for distinct, unique field --- include/class.canned.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/class.canned.php b/include/class.canned.php index 8ba175ba1..399b490d3 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)) -- GitLab