select count(*) as cnt from nfor_campaign where cp_approve='1' and cp_step='4' and cp_use='1' and cp_sdatetime <= '2025-07-11 07:12:42' and cp_recruit > cp_asign_count and DATE(cp_pick_datetime) >= DATE('2025-07-11 07:12:42') order by cp_h_s, cp_m_s,

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