// Now let's check for stats entries as well;
$result_mails = SQL_QUERY("SELECT
- `userid` AS sender
+ `userid` AS `sender`
FROM
`{?_MYSQL_PREFIX?}_user_stats`
WHERE
if (!fetchUserData($content['sender'])) {
// Okay we found some mails!
SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `userid`=%s",
- array(bigintval($content['userid'])), __FILE__, __LINE__);
+ array(bigintval($content['sender'])), __FILE__, __LINE__);
// Get all affected (deleted) rows
$deletedStats += SQL_AFFECTEDROWS();