I need to select statements where is fixed post id, group by user id and with latest date. Here is what i have:
$bids = "SELECT uid, Max(date_made), bid FROM ".$wpdb->prefix."auction_bids WHERE pid=$pid GROUP BY uid";
In this query is problem only with date, it returns first results, but i need last.
Here is the screen of my database:

You need to obtain the groupwise maximum:
See it on sqlfiddle.