Filters for configurable userid exclusion added:
[mailer.git] / inc / modules / guest / what-sponsor_infos.php
index dd757d9e3c3ccec1a973b72c26667b6c231580a5..5adb08c67f9d087f376e11b0c4392cb8e673afe7 100644 (file)
@@ -54,22 +54,24 @@ $result_pay = FALSE;
 
 // Load all sponsor actions
 $result_act = SQL_QUERY("SELECT
-       m.title AS `conv_title`, c.conv_rate, c.conv_name
+       `m`.`title` AS `conv_title`,
+       `c`.`conv_rate`,
+       `c`.`conv_name`
 FROM
-       `{?_MYSQL_PREFIX?}_sponsor_menu` AS m
+       `{?_MYSQL_PREFIX?}_sponsor_menu` AS `m`
 LEFT JOIN
-       `{?_MYSQL_PREFIX?}_sponsor_action_convert` AS c
+       `{?_MYSQL_PREFIX?}_sponsor_action_convert` AS `c`
 ON
-       m.what=c.ext_name
+       `m`.`what`=`c`.`ext_name`
 LEFT JOIN
-       `{?_MYSQL_PREFIX?}_sponsor_registry` AS r
+       `{?_MYSQL_PREFIX?}_sponsor_registry` AS `r`
 ON
-       m.what=r.ext_name
+       `m`.`what`=`r`.`ext_name`
 WHERE
-       m.`action`='actions' AND
-       r.is_active='Y'
+       `m`.`action`='actions' AND
+       `r`.`is_active`='Y'
 ORDER BY
-       m.sort ASC", __FILE__, __LINE__);
+       `m`.`sort` ASC", __FILE__, __LINE__);
 
 if (!SQL_HASZERONUMS($result_act)) {
        // Load all actions