Code:
SELECT MIN( IF(status=1,online,'2099-12-31') ) AS minStatus1,
MAX( IF(status=2,online,'1900-1-1') ) AS maxStatus2
FROM table
Naturally, the "dummy" values there (2099-12-31 and 1900-1-1) can be anything you choose that are outside the possible range of value in your actual data.