select count(*) from research_t a1
where a1.rt_show = 'Y' and a1.rt_status != 3 and a1.ct_id != '11' and idx not in () and a1.rt_edate >= '2024-09-17' 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 ') and a1.rt_edate >= '2024-09-17'' at line 2