title: Golang pq: syntax error when executing sql
body: <p>Using <code>revel</code>, <code>golang 1.1.2</code>, <code>gorp</code>, <code>postgres 9.3.2</code> on <code>heroku</code></p>
  
  <p>Following <code>robfig</code>'s List <a href="https://github.com/robfig/revel/blob/master/samples/booking/app/controllers/hotels.go" rel="noreferrer">booking example</a></p>
  
  <pre><code>func (c App) ViewPosts(page int) revel.Result {
      if page == 0 {
          page = 1
      }
      var posts []*models.Post
      size := 10
      posts = loadPosts(c.Txn.Select(models.Post{},
          `select * from posts offset ? limit ?`, (page-1)*size, size)) // error here
      return c.RenderJson(posts)
  }
  </code></pre>
  
  <p>Not sure why I'm getting <code>pq: syntax error at or near "limit"</code>. I'm assuming the combined query is wrong. Why does the query not end up being something like <code>select * from posts offset 0 limit 10</code>, which I've tested to run on postgres. Where am I messing up?</p>