Using pre_get_posts to filter by custom fields while using static front page

Using pre_get_posts to filter by custom fields while using static front page

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