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")));