select A.* from ( select * from user_staff where subject not in ('') and school not in ('0','') and img not in ('') and rand() limit 0,10 ) A order by rand() limit 2
select A.* from ( select * from user_staff where subject not in ('') and school not in ('0','') and img not in ('') and rand() limit 0,10 ) A order by rand() limit 2