syntax error: SELECT COUNT(*) AS visitip FROM table_counter WHERE ip='18.117.171.181' AND (tm+'900')>'1717418847'