I have the following query:
$qrysel = "select * from won_auctions w left join registration r on w.userid=r.id where xxx;
This query will show a list of users of the won_auctions table and get the user name in the registration table.
The idea is to check how many records each user has in the won_auctions table during the current month, and the total.
I also need to sort to display the ones with the most records first, for the current month.