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