How to send variable to wp meta_query value?

Use get_the_title to get the title. the_title is for when you want to output directly to the browser.

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