First you don't want to loop though quiriesqueries. You want to loop through records which query will return.
Second you could do that, this way:
$conn = db_connect();
$query = mysql_query("SELECT info, username, time FROM newsfeed ORDER BY time DESC LIMIT 10");
while(($row = mysql_fetch_assoc($query)) != NULL) {
echo "<p>User {$row['username']} just registered {$minutes} min ago</p><br />";
}
NB! Assuming, that this db_connect() makes a mysql connection.