public static function selectColumnForMultiple(
        $fieldName,
        $tableNames,
        $whereClause = '',
        $groupBy = '',
        $orderBy = '',
        $limit = ''
    ) {
        $rows = self::selectMultiple(
            $fieldName,
            $tableNames,
            $whereClause,
            $groupBy,
            $orderBy,
            $limit
        );

        $result = [];
        foreach ($rows as $row) {
            $result[] = $row[$fieldName];
        }

        return $result;
    }
public static function selectColumnForMultiple(
        $fieldName,
        $tableNames,
        $whereClause = '',
        $groupBy = '',
        $orderBy = '',
        $limit = ''
    ) {
        $rows = self::selectMultiple(
            $fieldName,
            $tableNames,
            $whereClause,
            $groupBy,
            $orderBy,
            $limit
        );

        $result = [];
        foreach ($rows as $row) {
            $result[] = $row[$fieldName];
        }

        return $result;
    }
public static function selectColumnForMultiple ( $ fieldName , $ tableNames , $ whereClause = '' , $ groupBy = '' , $ orderBy = '' , $ limit = '' ) { $ rows = self :: selectMultiple ( $ fieldName , $ tableNames , $ whereClause , $ groupBy , $ orderBy , $ limit ) ; $ result = [ ] ; foreach ( $ rows as $ row ) { $ result [ ] = $ row [ $ fieldName ] ; } return $ result ; }
Executes a SELECT query and returns one column from the result rows as a
one-dimensional numeric array.

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

@param string $fieldName
name of the field to select, 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 string $limit
LIMIT value ([begin,]max), may be empty

@return string[]
one column from the the query result rows, will be empty if there
are no matching records

@throws \Tx_Phpunit_Exception_Database if an error has occurred
Executes a SELECT query and returns one column from the result rows as a one - dimensional numeric array .