[MySQL Query Error] 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 'and a.kubun ='Y'' at line 4
select count(distinct(a.betting_no)) as cnt from tb_total_cart a,tb_total_betting b,tb_subchild c,tb_child d where a.betting_no=b.betting_no and b.sub_child_sn=c.sn and c.child_sn=d.sn and a.logo='gumiho' and a.user_del<>'Y' and a.member_sn= and a.kubun ='Y'