// FIXME: sqlite-backed instances don't include ellipsis on truncated titles
rows,err:=db.Query("SELECT id, slug, title, "+db.clip("content",80)+", pinned_position FROM posts WHERE collection_id = ? AND pinned_position IS NOT NULL ORDER BY pinned_position ASC",coll.ID)
rows:=&sql.Rows{}
varerrerror
ifincludeFuture{
rows,err=db.Query("SELECT id, slug, title, "+db.clip("content",80)+", pinned_position FROM posts WHERE collection_id = ? AND pinned_position IS NOT NULL ORDER BY pinned_position ASC",coll.ID)
}else{
rows,err=db.Query("SELECT id, slug, title, "+db.clip("content",80)+", pinned_position FROM posts WHERE collection_id = ? AND pinned_position IS NOT NULL AND created <= "+db.now()+" ORDER BY pinned_position ASC",coll.ID)