Barfs on properties with certain characters
Fragment of a discussion from Extension talk:SemanticFormsSelect
$query=preg_replace('/(?<!\\\\)\\(/','[',$query);
$query=preg_replace('/(?<!\\\\)\\)/',']',$query);
$query=preg_replace('/\\\\\\(/','(',$query);
$query=preg_replace('/\\\\\\)/',')',$query);
For anyone who faces a similar problem, these lines should replace the lines at ~97 and 98 that look like this:
$query=str_replace("(", "[", $query);
$query=str_replace(")", "]", $query);
This will enable you to use backslashes ('\') to escape your parentheses.