Check user is logged in and fix SQL syntax

Users going to the yourbids.php without logging in generates an SQL error seen in the backend. The SQL query looked wrong with ", b.bidwhen DESC" instead of ", b.bid DESC".