select count(*) as cnt from g5_write_service where wr_ip = '18.216.190.41' and datediff(LEFT(wr_datetime, 10) , CURDATE()) = 0 AND wr_is_comment ='0' GROUP BY wr_ip having count(*) >=
1064 : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
error file : /bbs/write.php