mysql 5.3 - some error, but query seems ok
===

    [Wednesday, July 18, 2012 05:48:38 pm] mysql query - error: 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 'a', '1') ON DUPLICATE KEY UPDATE count=count+1' at line 1
    [Wednesday, July 18, 2012 05:48:38 pm] query: INSERT INTO tags (ip, tag, count) VALUES ('xx.xx.xxx.xxx', 'krwiopijcy', '1') ON DUPLICATE KEY UPDATE count=count+1;

Is there anything wrong in my query (line 2)?

here without code style coz its more readable:

[Wednesday, July 18, 2012 05:48:38 pm] mysql query - error: 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 'a', '1') ON DUPLICATE KEY UPDATE count=count+1' at line 1

[Wednesday, July 18, 2012 05:48:38 pm] query: INSERT INTO tags (ip, tag, count) VALUES ('xx.xx.xxx.xxx', 'krwiopijcy', '1') ON DUPLICATE KEY UPDATE count=count+1;