Non l'ho testato:

Codice PHP:
class title extends head {

    private 
$title;

    public function 
__construct() {
        
$this->title $this->__selectQuery();
    }

    private function 
__selectQuery() {
        
$query "SELECT titolo FROM sezioni WHERE nome = %s LIMIT 1";
        
self::$db->__query($query$this->page); //line 109
        
if (!$result self::$db->__risultato()) {
            throw new 
Exception('La query di selezione ' $query ' non funziona correttamente!!');
        }
        return 
'<title>' $result '</title>';
    }

    public function 
__showTitle() {
        return 
$this->title;
    }

...

Codice PHP:
$db = new database($datiAccessoDb);

$page = new page($db);
$title = new title($db); 
E comunque non capisco il motivo per cui desideri utilizzare $db come static. Crea solo confusione.