I have a table with 2 dates - the ADDDATE and UPDATEDATE. When an item is added, the ADDDATE is the current date and the UPDATEDATE is 0000-00-00.
I need to
ORDER BY IF(UPDATEDATE > ADDDATE, UPDATEDATE, ADDDATE)