- $result = SQL_QUERY_ESC("SELECT userid, email, gender, surname, family, beg_points, last_online
-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__);
+ $result = SQL_QUERY("SELECT `userid`, `gender`, `surname`, `family`, `email`, `beg_points`, `last_online`
+FROM
+ `{?_MYSQL_PREFIX?}_user_data`
+WHERE
+ `status`='CONFIRMED' AND
+ `beg_points` > 0
+ " . $lastOnline . "
+ORDER BY
+ `beg_points` DESC,
+ `last_online` DESC,
+ `userid` ASC", __FILE__, __LINE__);