title: Guestbook application
body: <p>I made a very minor mod to the GqlQuery to retrieve only specified records using the
  'where' keyword.  The output, however, displays all entries from the guestbook db!
  (I need to filter the data by author)</p>
  
  <p>Guestbook5_datastore code:</p>
  
  <pre><code>#greetings = db.GqlQuery("SELECT * FROM Greeting ORDER BY date DESC LIMIT 10")
  greetings = db.GqlQuery("SELECT * FROM Greeting where greeting.author='mike'")
  </code></pre>
  
  <p>index.html code:</p>
  
  <pre><code>{% for greeting in greetings %}
    {% if greeting.author %}
      &lt;b&gt;{{ greeting.author.nickname }}&lt;/b&gt; wrote:
    {% else %}
     An Anonymous person wrote:
    {% endif %}
    &lt;blockquote&gt;{{ greeting.content|escape }}&lt;/blockquote&gt;
  {% endfor %}
  </code></pre>