Added escapes for query variables resulting in bad requests from CHAOS.
Adding a hack to prevent wordpress from escaping " and '
Adding organisations to the conditions for expanding the advanced search
controls.