select * from werbung_daten WHERE (adkat='17' or adkat='16') and art='2' and status='Y' order by rand(UNIX_TIMESTAMP()*UNIX_TIMESTAMP()) limit 0,1