]> git.mxchange.org Git - mailer.git/blobdiff - inc/monthly/monthly_beg.php
More improved SQL queries
[mailer.git] / inc / monthly / monthly_beg.php
index 6f659675d45b654bc05eb8c3e3c81c75777a2b8a..17a38d2a8b69c10cdb168d03ffc86421271c92b9 100644 (file)
@@ -70,7 +70,7 @@ if (($curr != getConfig('last_month')) && (getConfig('last_month') > 0) && (getC
        // SQL string to check for accounts
        $result_main = SQL_QUERY_ESC("SELECT userid, email, gender, surname, family, beg_points AS points
 FROM `{!_MYSQL_PREFIX!}_user_data`
-WHERE status='CONFIRMED'".$whereStatement1." AND beg_points > 0
+WHERE `status`='CONFIRMED'".$whereStatement1." AND beg_points > 0
 ORDER BY beg_points DESC, userid
 LIMIT %s",
                array($whereStatement2), __FILE__, __LINE__);