More SQL rewrites, TODO: Put all table and column names in backticks (`)
[mailer.git] / inc / modules / member / what-beg.php
index 8cd19555c8351f3d490d927ff1d7a1469d310998..a48cd88338d5e74631fc0cf9bb37e7c4b3147162 100644 (file)
@@ -58,7 +58,10 @@ if (EXT_IS_ACTIVE("nickname"))
 }
 
 // Run SQL command
-$result = SQL_QUERY_ESC("SELECT ".$data.", beg_clicks FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1", array($uid), __FILE__, __LINE__);
+$result = SQL_QUERY_ESC("SELECT ".$data.", beg_clicks
+FROM `"._MYSQL_PREFIX."_user_data`
+WHERE userid=%s
+LIMIT 1", array($uid), __FILE__, __LINE__);
 list($uid, $clicks) = SQL_FETCHROW($result);
 SQL_FREERESULT($result);