Can i forget about the post loop inside the page template?

On single page and post templates the main loop is only ever going to contain one post, so you don’t need to worry about duplicate IDs in your example.

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