db_query() PDOException (no parameters were bound)
Don't need execute()，

db_query('
    INSERT INTO {account_floodprotect} (ipaddress, soapcount, mailcount)
    VALUES (:ipaddress, :soapcount, :mailcount)
    ON DUPLICATE KEY UPDATE
    soapcount = soapcount + :soapcount,
    mailcount = mailcount + :mailcount',
  array(
    ':ipaddress' =&gt; $ip,
    ':soapcount' =&gt; $soapcount,
    ':mailcount' =&gt; $mailcount,
  ));