fix in number of comments
diff --git a/website/blog.py b/website/blog.py
index fe3cbbd..8813dc0 100644
--- a/website/blog.py
+++ b/website/blog.py
@@ -17,7 +17,7 @@
 		select
 			name, content, owner, creation as creation,
 			title, (select count(name) from `tabComment` where
-				comment_doctype='Blog' and comment_docname=name) as comments
+				comment_doctype='Blog' and comment_docname=`tabBlog`.name) as comments
 		from `tabBlog`
 		where ifnull(published,0)=1
 		order by creation desc, name asc"""