Error in Selection Query
select count(a.msg_id) as totcnt from msdbrd a where a.to_mem_id = and a.del_status=0
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 'and a.del_status=0' at line 1