select count(*) as cnt from championship_game a
left outer join championship_round_info b on a.championship_idx=b.championship_idx and a.championship_round = b.round_num
left outer join championship_round_info d on a.championship_idx=d.championship_idx and d.round_num='1'
left outer join g4_member c on a.mb_id=c.mb_id and c.n_code='156'
where (a.championship_gubun = '1' or a.championship_gubun = '2') and a.is_confirmed='1' and c.n_code='156'
2002 : Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2 "No such file or directory")