protected function selectSingle(string $query, array $parameters = [], string $allowedTags = "")
    {
        $statement = $this->query($query, $parameters);
        $statement->setAllowedHtmlTags($allowedTags);
        $result = $statement->next($this->fetchStyle);
        return ($result) ? $result : null;
    }
protected function selectSingle(string $query, array $parameters = [], string $allowedTags = "")
    {
        $statement = $this->query($query, $parameters);
        $statement->setAllowedHtmlTags($allowedTags);
        $result = $statement->next($this->fetchStyle);
        return ($result) ? $result : null;
    }
protected function selectSingle ( string $ query , array $ parameters = [ ] , string $ allowedTags = "" ) { $ statement = $ this -> query ( $ query , $ parameters ) ; $ statement -> setAllowedHtmlTags ( $ allowedTags ) ; $ result = $ statement -> next ( $ this -> fetchStyle ) ; return ( $ result ) ? $ result : null ; }
Execute a SELECT query which should return a single data row. Best
suited for queries involving primary key in where. Will return null
if the query did not return any results. If more than one row is
returned, an exception is thrown.

@param string $query
@param array $parameters
@param string $allowedTags
@return \stdClass
Execute a SELECT query which should return a single data row . Best suited for queries involving primary key in where . Will return null if the query did not return any results . If more than one row is returned an exception is thrown .