public function getUID($email) { $query = $this->dbh->prepare("SELECT id FROM {$this->config->table_users} WHERE email = ?"); $query->execute(array($email)); if (!($row = $query->fetch(\PDO::FETCH_ASSOC))) { return false; } return $row['id']; }