More improved SQL queries
[mailer.git] / inc / mails / beg_mails.php
index f0aa99ed6715e0c6f54638b357748433761992d4..5fa921256436733246ac8bcd705b841a94be5c00 100644 (file)
@@ -82,7 +82,7 @@ case "N": // Begging 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";
 
        // Prepare data for the template
        define('__BEG_MIN_POINTS' , TRANSLATE_COMMA(getConfig('beg_points')));