err:=app.db.QueryRow("SELECT id, title, content, text_appearance, language, rtl, view_count, created, owner_id FROM posts WHERE slug = ? AND collection_id = (SELECT id FROM collections WHERE alias = ?)",slug,collAlias).Scan(&id,&title,&content,&font,&lang,&isRTL,&views,&created,&ownerID)
ifapp.cfg.App.SingleUser{
err=app.db.QueryRow("SELECT id, title, content, text_appearance, language, rtl, view_count, created, owner_id FROM posts WHERE slug = ? AND collection_id = 1",slug).Scan(&id,&title,&content,&font,&lang,&isRTL,&views,&created,&ownerID)
}else{
err=app.db.QueryRow("SELECT id, title, content, text_appearance, language, rtl, view_count, created, owner_id FROM posts WHERE slug = ? AND collection_id = (SELECT id FROM collections WHERE alias = ?)",slug,collAlias).Scan(&id,&title,&content,&font,&lang,&isRTL,&views,&created,&ownerID)