public function getRowById($id, $table)
    {
        $id  = $this->quoteQueryStringVariable($id);
        $key = $this->getPrimaryKeys($table);

        $query = "SELECT * FROM {$table}
                    WHERE {$key} = {$id}";

        $statement = $this->pdo->prepare($query);

        $result = $this->statementWrapper($statement);

        if (empty($result)) {
            $row = false;
        } else {
            $row = $result[0];
        }

        return $row;
    }