More improved SQL queries
[mailer.git] / inc / mails / bonus_mails.php
index 48590a115c17b9a6aaa97a1287e5bb82aff20327..591ae9e2e64a01930e4e2fa6e35aff9455e35640 100644 (file)
@@ -76,7 +76,7 @@ case "N": // Active rallye is deactivated
 
 if (!empty($SQL)) {
        // The SQL command needs to be finisched here (only confirmed accounts!)
-       $SQL .= ") AND status='CONFIRMED' ORDER BY last_online ASC";
+       $SQL .= ") AND `status`='CONFIRMED' ORDER BY last_online ASC";
 
        // Normal notification mails or bonus mails?
        $MAIL_MODE = ((getConfig('bonus_notify_points') > 0) && ($MODE == "en") && (EXT_IS_ACTIVE("bonus")));