I currently have
SELECT * FROM bidders WHERE status='0' AND email IS NOT NULL GROUP BY `bid_user` ORDER BY 'bid_price' DESC
The problem that I have is that "bid_user" may exist in different rows with different status ( status=1 or status=0).
I would like to know if it's possible to select only the * rows where status=0 and where bid_user doesn't doesn't exist with status=1 along with the above conditions(AND email IS NOT NULL
GROUP BY bid_user
ORDER BY 'bid_price' DESC).
I can work around this issue using PHP + 2 mysql queries but it would be much way better to have the exact query in mysql .