View statistics on particular post

Adding a method to view statistics by post_id. SQL query is passed through the prepare().