syntax error: SELECT COUNT(*) AS visitip FROM counter WHERE ip='54.197.151.150' AND (tm+'900')>'1487972143'