Trying to modify custom search function in plugin to search postmeta table for keyword as well as posts table

You’ve got an instance of metakey which should be meta_key.

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