select * from tblaccounts,tblstaffs,tblruleaccounts, tblrules where tblstaffs.id=tblaccounts.id_staff and tblstaffs.id=tblruleaccounts.id_staff and tblrules.id=tblruleaccounts.id_rule and username=@username and password=@password and tblrules.id=3
select * from tblaccounts,tblstaffs,tblruleaccounts, tblrules where tblstaffs.id=tblaccounts.id_staff and tblstaffs.id=tblruleaccounts.id_staff and tblrules.id=tblruleaccounts.id_rule and username=@username and password=@password and tblrules.id=3