select * from pages where slug='terms' AND deleted != 1