Fixed the issue in querying posts

http://prideparrot.com/blog/archive/2012/12/how_to_create_a_simple_blog_part1#comment-1499487381