All database names are now 'back-ticked' and constant _MYSQL_PREFIX is wrapped. Partl...
[mailer.git] / inc / modules / admin / what-list_beg.php
index 4340ef0a9f175a25ae2459b2aca5766cffd8e0ad..af0d7d96fb6fe80cfd2ff4670d6e621a506fc332 100644 (file)
@@ -60,7 +60,7 @@ if (getConfig('beg_rallye') == "Y") {
 
        // Check if at least one is in the active rallye
        $result = SQL_QUERY_ESC("SELECT userid, email, gender, surname, family, beg_points, last_online
-FROM "._MYSQL_PREFIX."_user_data
+FROM `{!MYSQL_PREFIX!}_user_data`
 WHERE status='CONFIRMED' AND beg_points > 0".$LAST."
 ORDER BY beg_points DESC, last_online DESC, userid",
         array($ONLINE), __FILE__, __LINE__);