How to add terms to my tax_query based off of the current post

‘terms’ => array(‘$tags1’),

Remove the single quotes and it should look like
‘terms’ => array($tags1) OR ‘terms’ => $tags1

No need to make it an array, if you are using just one value.

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