- SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_stats` (`pool_id` , `userid`, `cat_id`, `payment_id`, `subject`, `url` , `max_rec` , `timestamp_ordered`, `timestamp_sstart`) VALUES ('%s','%s','%s','%s','%s','%s','%s','%s' , UNIX_TIMESTAMP())",
- array(bigintval($DATA['id']), bigintval($DATA['sender_userid']), bigintval($DATA['cat_id']), bigintval($DATA['payment_id']), $DATA['subject'], $DATA['url'], $DATA['target_send'], bigintval($DATA['timestamp'])), __FILE__, __LINE__);
+ SQL_QUERY_ESC("INSERT INTO
+ `{?_MYSQL_PREFIX?}_user_stats`
+(
+ `pool_id`,
+ `userid`,
+ `cat_id`,
+ `payment_id`,
+ `subject`,
+ `url`,
+ `max_rec`,
+ `timestamp_ordered`,
+ `timestamp_sstart`
+) VALUES (
+ %s,
+ %s,
+ %s,
+ %s,
+ '%s',
+ '%s',
+ %s,
+ %s,
+ UNIX_TIMESTAMP()
+)",
+ array(
+ bigintval($mailData['id']),
+ bigintval($mailData['sender_userid']),
+ bigintval($mailData['cat_id']),
+ bigintval($mailData['payment_id']),
+ $mailData['subject'],
+ $mailData['url'],
+ bigintval($mailData['target_send']),
+ bigintval($mailData['timestamp'])
+ ), __FILE__, __LINE__);