public static function queryRow($db, $sql, $types = null)
    {
        $mdb2_types = $types === null ? true : $types;

        $row = self::executeQuery($db, 'queryRow', array(
            $sql,
            $mdb2_types,
            MDB2_FETCHMODE_OBJECT
        ));

        return $row;
    }