select count(*) as cnt from nfor_campaign where cp_approve='1' and cp_step='4' and cp_use='1' and cp_sdatetime <= '2024-03-29 08:57:31' and DATE(cp_pick_datetime) >= DATE('2024-03-29 08:57:31') order by

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 4

error file : /campaign_list.php