Queries improved, output-bug fixed in points overview
[mailer.git] / inc / modules / admin / what-config_points.php
index b8a62ba74702ebddcd371654021f89dd444a8380..724779bef285edb54a0a3aa10284de9a723d7706 100644 (file)
@@ -135,8 +135,8 @@ WHERE `mails_confirmed` < %s", $REF, $REF));
 
        if ((isSqlsValid()) && (isSqlsValid())) {
                if (strpos($GLOBALS['sqls'][0], 'INSERT') > -1) {
-                       $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE level='%s' LIMIT 1",
-                       array(bigintval(postRequestElement('level'))), __FILE__, __LINE__);
+                       $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `level`='%s' LIMIT 1",
+                               array(bigintval(postRequestElement('level'))), __FILE__, __LINE__);
                        SQL_FREERESULT($result);
                } // END - if