How to retrieve a post by inputing the url in a custom field and displaying it on an options page

How to retrieve a post by inputing the url in a custom field and displaying it on an options page

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