diff --git a/interface/lib/classes/remoting_lib.inc.php b/interface/lib/classes/remoting_lib.inc.php index 9ee3ca547c2d11cf0e9b89f7cbaac4251435f071..1299080156d2a99d3d127958724d5c7c9dff6bbf 100644 --- a/interface/lib/classes/remoting_lib.inc.php +++ b/interface/lib/classes/remoting_lib.inc.php @@ -243,9 +243,9 @@ class remoting_lib extends tform_base { if($key == '#OFFSET#') $sql_offset = $app->functions->intval($val); elseif($key == '#LIMIT#') $sql_limit = $app->functions->intval($val); elseif(stristr($val, '%')) { - $sql_where .= "? like ? AND "; + $sql_where .= "?? like ? AND "; } else { - $sql_where .= "? = ? AND "; + $sql_where .= "?? = ? AND "; } $params[] = $key; $params[] = $val;