I need to display post related info

I fear you will struggle to do this, as you will need to utilise rewrite rules in a “sensitive” area; custom post types.

Could you not change your thinking slightly, and do it like so?

www.example.com/questions/post-slug/
www.example.com/ratings/post-slug/
etc...

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)