select * from pages where slug='2010-07' AND deleted != 1