public static function selectSingle(
        $fields,
        $tableNames,
        $whereClause = '',
        $groupBy = '',
        $orderBy = '',
        $offset = 0
    ) {
        $result = self::selectMultiple(
            $fields,
            $tableNames,
            $whereClause,
            $groupBy,
            $orderBy,
            $offset . ',' . 1
        );
        if (empty($result)) {
            throw new \Tx_Oelib_Exception_EmptyQueryResult();
        }

        return $result[0];
    }
public static function selectSingle(
        $fields,
        $tableNames,
        $whereClause = '',
        $groupBy = '',
        $orderBy = '',
        $offset = 0
    ) {
        $result = self::selectMultiple(
            $fields,
            $tableNames,
            $whereClause,
            $groupBy,
            $orderBy,
            $offset . ',' . 1
        );
        if (empty($result)) {
            throw new \Tx_Oelib_Exception_EmptyQueryResult();
        }

        return $result[0];
    }
public static function selectSingle ( $ fields , $ tableNames , $ whereClause = '' , $ groupBy = '' , $ orderBy = '' , $ offset = 0 ) { $ result = self :: selectMultiple ( $ fields , $ tableNames , $ whereClause , $ groupBy , $ orderBy , $ offset . ',' . 1 ) ; if ( empty ( $ result ) ) { throw new \ Tx_Oelib_Exception_EmptyQueryResult ( ) ; } return $ result [ 0 ] ; }
Executes a SELECT query and returns the single result row as an
associative array.

If there is more than one matching record, only one will be returned.

@param string $fields list of fields to select, may be "*", must not be empty
@param string $tableNames
comma-separated list of tables from which to select, must not be empty
@param string $whereClause WHERE clause, may be empty
@param string $groupBy GROUP BY field(s), may be empty
@param string $orderBy ORDER BY field(s), may be empty
@param int $offset the offset to start the result for, must be >= 0

@return string[] the single result row, will not be empty

@throws \Tx_Oelib_Exception_EmptyQueryResult if there is no matching record
Executes a SELECT query and returns the single result row as an associative array .