More misc fixes and rewrites (sorry, lame description)
[mailer.git] / inc / modules / guest / what-welcome.php
index 5f1e1d3..dfb9c4e 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 ADD_DESCR('guest', __FILE__);
 
 // Count referal levels
-$result = SQL_QUERY("SELECT COUNT(id) FROM `{!_MYSQL_PREFIX!}_refdepths` WHERE level>0", __FILE__, __LINE__);
+$result = SQL_QUERY("SELECT COUNT(`id`) FROM `{!_MYSQL_PREFIX!}_refdepths` WHERE `level` > 0", __FILE__, __LINE__);
 
 // Fetch rows
 list($cnt) = SQL_FETCHROW($result);