I have worked this one out. I was implementing various labels for form elements and one had a \ character in. This must escape something in a query that causes it all to fail. Developer could probably url_encode it to sort it out or just swap back slashes at php level.