More SQL rewrites, TODO: Put all table and column names in backticks (`)
[mailer.git] / inc / mails / beg_mails.php
index 94ee8d216b6f194f0135380a95c89b2f4328eefb..2d37118b0d145ca0290ea6cb39e809e8fd7f9ee4 100644 (file)
@@ -48,7 +48,7 @@ $mark = mktime(0, 0, 0, $_CONFIG['last_month'], date("d", time()), date('Y', tim
 $SQL = ""; $MODE = "";
 
 // Shall I sent activation or deactivation mail?
-$SQL = "SELECT userid, email FROM "._MYSQL_PREFIX."_user_data WHERE (beg_ral_notify ";
+$SQL = "SELECT userid, email FROM `"._MYSQL_PREFIX."_user_data` WHERE (beg_ral_notify ";
 switch ($_CONFIG['beg_rallye'])
 {
 case 'Y': // Begging rallye is activated