[] in [select ad_id, find_in_set(ad_type, 'prio,basic,os,prem') from ad where status='a' and date_end>current_timestamp() and active=1 and catcode='000000000' and loccode='001000000' and adult=0 order by 2 desc, rand() limit 1000]