More improved SQL queries
[mailer.git] / inc / modules / guest / what-active.php
index 2a6845808d880dd7eadf53f8dd00bdab720e5923..6221433fef60c5551a0ec103d062c338a67f92ac 100644 (file)
@@ -52,7 +52,7 @@ if (EXT_IS_ACTIVE("nickname")) $ADD = "nickname";
 // Check for members who were active only this day
 $result = SQL_QUERY_ESC("SELECT userid, ".$ADD.", last_online
 FROM `{!_MYSQL_PREFIX!}_user_data`
-WHERE last_online >= %s AND status='CONFIRMED'
+WHERE last_online >= %s AND `status`='CONFIRMED'
 ORDER BY last_online DESC LIMIT %s",
        array(START_TDAY, getConfig('active_limit')), __FILE__, __LINE__);