hmmm, have no idea. just an amateur really hacking away. The problem is this install has caused my wordpress admin panel, under presentations/themes to show that error. Sorry was not being detailed enough in post.
SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN (‘category’) AND tr.object_id IN (0) ORDER BY t.name ASC
Warning: Cannot modify header information – headers already sent by (output started at /var/www/vhosts/hapikar.com/httpdocs/wp-includes/wp-db.php:160) in /var/www/vhosts/hapikar.com/httpdocs/wp-includes/pluggable.php on line 391