Changing posts date

You need to use post_date field as UNIX Time stamp. Then you will use above code. May be you have update the date of post

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