select * from aids_xxxx where uid='124' and not(apm='1' and aps='5') and not(apm='2' and aps='6') and not (aps='0') order by aps
select * from aids_xxxx where uid='124' and not(apm='1' and aps='5') and not(apm='2' and aps='6') and not (aps='0') order by aps