I had a loop like that :
foreach($Fields as $Name => $Value){ $Query->bindParam(\':\'.$Name, $Value, PDO::PARAM_STR); }
Nothing c
There is one more nasty option to get rid of this issue.
You can simply iterate through the array keys, and get each value as a parameter by using these keys:
foreach(array_keys($params) as $key) { $sth->bindParam($key, $params[$key]); }