Ok I am having some trouble with this one, for some reason this is not working.
I am trying to get a list of trades made by a user or to the user that are still active.
SELECT * FROM trades WHERE active = 1 and trader = 1 or tradee = 1 ORDER BY trade_date ASC
This returns non active trades because the tradee or trader equals 1. I have even tried other variations.
SELECT * FROM trades WHERE trader = 1 OR tradee = 1 AND active = 1 ORDER BY trade_date ASC
Any help would be appreciated.