There is way to improve this query? wordpress get post data and some meta data

There is way to improve this query? wordpress get post data and some meta data

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