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 '87.239.255.101' AND NOW() < DATE_ADD(date, INTERVAL 24 HOUR)ELECT count(ip_addr)' at line 1