Pretty Permalink for Search Queries Not Working

Schoolboy error!

I was using:

$_GET['s'];

as opposed to:

get_query_var('s');

Hence the empty search results.

Hope this might help somebody in the future!

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