a.status=1 and a.users_id=u.id and u.status=1 and ( (a.position RLIKE '[[:<:]]Повар' and a.position RLIKE '[[:<:]]дипломирован') or (a.professional_duty RLIKE '[[:<:]]Повар' and a.professional_duty RLIKE '[[:<:]]дипломирован') or (a.key_words RLIKE '[[:<:]]Повар' and a.key_words RLIKE '[[:<:]]дипломирован') or (a.position RLIKE '[[:<:]]суток') or (a.professional_duty RLIKE '[[:<:]]суток') or (a.key_words RLIKE '[[:<:]]суток')