public static function returnSingleValue($statement, $namedParameters = [], $connection = null)
    {
        $statement = self::executeStatement(
            $statement,
            $namedParameters,
            $connection !== null ? $connection : static::getReadOnlyConnection()
        );

        return $statement->fetchColumn(0);
    }
public static function returnSingleValue($statement, $namedParameters = [], $connection = null)
    {
        $statement = self::executeStatement(
            $statement,
            $namedParameters,
            $connection !== null ? $connection : static::getReadOnlyConnection()
        );

        return $statement->fetchColumn(0);
    }
public static function returnSingleValue ( $ statement , $ namedParameters = [ ] , $ connection = null ) { $ statement = self :: executeStatement ( $ statement , $ namedParameters , $ connection !== null ? $ connection : static :: getReadOnlyConnection ( ) ) ; return $ statement -> fetchColumn ( 0 ) ; }
Executes the statement and returns the first column of the first row.

@param $statement
@param array $namedParameters
@param null $connection
@return string
Executes the statement and returns the first column of the first row .