in'i böyle kullanmanız lazım.

IN ('1','2')

Yani son kod :

@mysql_query("select *,(test/test) vie from cat where kategori in('1','2') and durum='1' order by vie asc, rand() desc limit 0,1")