Search not showing all results

Turns out I had an extra if statement in my search.php file that was filtering out content that didn’t contain a proper excerpt.

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