hmm... on second thought, that may not work, and chances are you are on an old version of mysql that doesnt support subqueries.
Still, there isnt a problem:
$low_sql = "SELECT bid, COUNT(bid) as bid_count
FROM bids
WHERE bid<'{$auctionBID}' AND auction='{$auctionID}'
GROUP BY bid";
$low_query = mysql_query($low_sql);
$low_bids = array();
$unique_lower_bid_exist = false;
if (mysql_num_rows($low_query) > 0) {
while ($row = mysql_fetch_assoc($low_query)) {
if ($row['bid_count'] == 1) {
$low_bids[] = $row['bid'];
$unique_lower_bid_exist = true;
}
}
}
Note that now $low_bids is a numerically indexed array that contains the unique bids that are lower than the one given. Also I have renamed the flag to $unique_lower_bid_exist