- $result = SQL_QUERY("SELECT userid, refid, points, timemark
-FROM `{!_MYSQL_PREFIX!}_doubler`
-WHERE completed='".$done."' AND is_ref='".$ref."'".$add."
-ORDER BY timemark ".$sort."
+ $result = SQL_QUERY("SELECT
+ `userid`, `refid`, `points`, `timemark`
+FROM
+ `{?_MYSQL_PREFIX?}_doubler`
+WHERE
+ `completed`='".$done."' AND `is_ref`='".$ref."'".$add."
+ORDER BY
+ `timemark` ".$sort."