Question: There is some sort of DNS error on my clients website that is hosted by HeartInternet. For some reason the site does not appear unless `www.` is specified explicitly.

Works: <http://www.elmhaven-marina.co.uk>

Doesn't Work: <http://elmhaven-marina.co.uk>

How can this error be fixed?

Answer: 
```
 $list = mysql_query("SELECT id,  post_title,  post_date 
FROM wp_posts 
WHERE post_title LIKE '%$searchpattern%') ORDER BY post_date;");

```

You have unexpected ")" before the "ORDER" operator.
You have an open bracket before the ORDER BY. Maybe that's what causing the problem