change the return value to null.
modified the procedure get_postview_for_admin
added column root to table post.
added the required the changes to handle error.