More improved SQL queries
[mailer.git] / inc / modules / admin / what-list_bonus.php
index e170f50333859ca94218d0d84a3b7602d429842d..0a97f1cea63ad362e05e4225c1e35544cdddcb6c 100644 (file)
@@ -75,7 +75,7 @@ if (getConfig('bonus_active') == "Y") {
        // Check if at least one is in the active rallye
        $result = SQL_QUERY_ESC("SELECT userid AS uid, email, gender, surname, family, ".$USE." AS points, last_online AS last
 FROM `{!_MYSQL_PREFIX!}_user_data`
-WHERE status='CONFIRMED' AND ".$USE." > 0".$LAST."
+WHERE `status`='CONFIRMED' AND ".$USE." > 0".$LAST."
 ORDER BY points DESC, last_online DESC, userid",
         array($ONLINE), __FILE__, __LINE__);