SELECT * FROM news WHERE (`sta_date` <= '1220879765' and `sto_use`='0') or (`sta_date` <= '1220879765' and `sto_date` >= '1220879765' and `sto_use`='1') ORDER BY `sta_date` DESC LIMIT 0, 10