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