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 ' prodstats_parentid = 512 WHERE prodstats_hash = '8fe30bbcdba0310e78166c07c9cc66' at line 1
UPDATE prod_stats SET prodstats_numviews = prodstats_numviews+1, prodstats_lastseen = '2013-05-21 20:28:32', prodstats_catid = , prodstats_parentid = 512 WHERE prodstats_hash = '8fe30bbcdba0310e78166c07c9cc66b5'