Well a Union query would do it. And probably joining the table to itself would work as well, but I'm not in the mood to work that one out.
$sql = "SELECT field1 as f FROM table WHERE f IS NOT NULL
UNION
SELECT field2 as f FROM table WHERE field1 IS NULL";
PS I'm not all that up on mysql syntax for the is not null, could be something like NOT IS NULL or NOT NULL.