select * from pub_r where id_pub = 75 and id_templates = 15 and id_site = 28 and paused = 0 order by rand()