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

        return $statement->fetch(\PDO::FETCH_ASSOC);
    }
public static function returnFirstRow($statement, $namedParameters = [], $connection = null)
    {
        $statement = self::executeStatement(
            $statement,
            $namedParameters,
            $connection !== null ? $connection : static::getReadOnlyConnection()
        );

        return $statement->fetch(\PDO::FETCH_ASSOC);
    }
public static function returnFirstRow ( $ statement , $ namedParameters = [ ] , $ connection = null ) { $ statement = self :: executeStatement ( $ statement , $ namedParameters , $ connection !== null ? $ connection : static :: getReadOnlyConnection ( ) ) ; return $ statement -> fetch ( \ PDO :: FETCH_ASSOC ) ; }
Returns the first row of results from the statement

@param $statement
@param array $namedParameters
@param null $connection
@return string
Returns the first row of results from the statement