INSERT INTO `stats` VALUES(CURDATE(), :bytes) ON DUPLICATE KEY UPDATE SET `bytes` = `bytes` + :bytes #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SET `bytes` = `bytes` + 1024' at line 4