I have tried using this to access the database:
return $db->execute('SELECT `id` FROM `main_games` WHERE `id`=?', array($this->getSubdomain));
I am not sure if that worked, as it doesn't even comes up with anything. I have checked that the data should exist but my function always comes up false. Do I have to do another command to return the number of rows?