-$result_act = SQL_QUERY("SELECT DISTINCT m.title, c.conv_rate, c.conv_name
-FROM "._MYSQL_PREFIX."_sponsor_menu AS m
-LEFT JOIN "._MYSQL_PREFIX."_sponsor_action_convert AS c ON m.what=c.ext_name
-LEFT JOIN "._MYSQL_PREFIX."_sponsor_registry AS r ON m.what=r.ext_name
-WHERE m.action='actions' AND r.is_active='Y'
-ORDER BY m.sort ASC", __FILE__, __LINE__);
-$num_act = SQL_NUMROWS($result_act);
+$result_act = SQL_QUERY("SELECT
+ m.title AS `conv_title`, c.conv_rate, c.conv_name
+FROM
+ `{?_MYSQL_PREFIX?}_sponsor_menu` AS m
+LEFT JOIN
+ `{?_MYSQL_PREFIX?}_sponsor_action_convert` AS c
+ON
+ m.what=c.ext_name
+LEFT JOIN
+ `{?_MYSQL_PREFIX?}_sponsor_registry` AS r
+ON
+ m.what=r.ext_name
+WHERE
+ m.`action`='actions' AND
+ r.is_active='Y'
+ORDER BY
+ m.sort ASC", __FILE__, __LINE__);