Editing a function in functions.php is causing a "connection reset" error on a page. But I cant see why this would be.
I have made an error in an embedded SQL Script by including a "GROUP BY" in each query (a multisite aggregation) in a multi "UNION" Script.
Of course the page was displaying, as all the script was doing was listing terms for a taxonomy aggregated across a mutisite.
The taxonomy is "localities" so by having the "GROUP BY" in the individual queries I am getting two results for Europe etc (well in fact many, not two, as there are many blogs involved in the Union's)
So I simply removed the "GROUP BY" element thus: (no other code changed)
...WHERE post_status = 'publish' AND post_type = 'post' AND t.taxonomy = 'localities' GROUP BY the_slug";
...WHERE post_status = 'publish' AND post_type = 'post' AND t.taxonomy = 'localities'"; //GROUP BY the_slug";
Gives the connnection reset error.
I dont get it - can anybody advise me on this please.