id = $id*1; $query = "select ed_id from publishers where ed_id = ".$this->id; $result = pmb_mysql_query($query); if($result && pmb_mysql_num_rows($result)){ $this->authority = new authority(0, $this->id, AUT_TABLE_PUBLISHERS); } } }