$onlineg= mysql_query("select * from wizard_ex_guzel where onay1<>'1' and active='1' ORDER BY RAND()");

yaparsan olur sanırım.