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