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