Question: I have class that extends another class.

```
class TWITTER_FOLLOWERS extends TWITTER_BOT

```

in **TWITTER\_FOLLOWERS** i want to acces the **db** object from **TWITTER\_BOT**
but i get just an error

**Fatal error: Call to a member function fetch\_all\_array() on a non-object in /var/www/bot/inc/TWITTER\_FOLLOWERS.php on line 163**

On line 163 i have this code 

```
$results = $this->db->fetch_all_array($q);

```

How can i access the parent object db ?

Answer: 
did you run the parent constructor? this looks like the subclass doesn't bother initializing properly (by calling the parent constructor).
To be honest I'm not sure what you exactly want. But my guess would be that you are looking for the [parent](http://php.net/manual/en/keyword.parent.php) special name.