syntax error: SELECT COUNT(*) AS visitip FROM table_counter WHERE ip='3.89.87.12' AND (tm+'900')>'1604195458' Table 'table_counter' is marked as crashed and should be repaired