Extension 'ext-coupon' moved to branch, SQLs improved:
[mailer.git] / inc / modules / admin / what-unlock_sponsor.php
index 74bd7e8..3a1852f 100644 (file)
@@ -159,7 +159,7 @@ LIMIT 1",
                                        // Load referal's data
                                        $result = SQL_QUERY_ESC("SELECT
        `id`, `gender`, `surname`, `family`, `email`,
-       (`points_amount` - `points_used`) AS points,
+       (`points_amount` - `points_used`) AS `points`,
        `receive_warnings`, `ref_count` AS refs
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`