Print_r displaying two different post->ID if placed in sidebar or single.php

do you have a query pulling those related posts at the bottom? the 4 squares?

it looks like you need a wp_reset_query() after those as the final square is titled “prova 3” which is the post you are showing the object data for in the sidebar.

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