Sort by posts that have a featured image?

Change _wp_attached_file to _thumbnail_id

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