if (!$this->hasCreditsRecord($targetAccountID)) { $sql = "INSERT INTO {$this->charMapDatabase}.`acc_reg_num_db` (`account_id`, `key`, `index`, `value`) VALUES (?,'#CASHPOINTS',0,?) ON DUPLICATE KEY UPDATE `value`=`value`+?"; $sth = $this->connection->getStatement($sql); $vals = array($targetAccountID, $credits,$credits); return $sth->execute($vals); }
Works fine for me... well for the exact error, enable the error reporting from config/error.php :
Change