- $result = SQL_QUERY_ESC("SELECT id, type, rate, min_points
-FROM `{!MYSQL_PREFIX!}_payout_types`
-WHERE %s >= min_points
-ORDER BY type", array($points), __FILE__, __LINE__);
- if (SQL_NUMROWS($result) > 0) {
- OUTPUT_HTML("<br /><div align=\"center\">
-<div align=\"center\"><strong>".PAYOUT_NOW.":</strong></div><br />
-<ul>");
+ $result = SQL_QUERY_ESC("SELECT
+ `id`, `type`, `rate`, `min_points`
+FROM
+ `{?_MYSQL_PREFIX?}_payout_types`
+WHERE
+ %s >= `min_points`
+ORDER BY
+ `type` ASC",
+ array($points), __FUNCTION__, __LINE__);
+ if (!SQL_HASZERONUMS($result)) {