select t1.tenterprise_phonid,t1.fname,t1.fdepname,t1.frole,t1.fphonenumber,t1.fgroupname,t1.createby,t1.createdate,t1.changeby,t1.changedate from tenterprise_phonebook t1
where t1.siteid = $siteid$ and $where$