protected function replaceWildcards($arrValues)
{
$arrValues = $this->escapeParams($arrValues);
$this->strQuery = preg_replace('/(?<!%)%([^bcdufosxX%])/', '%%$1', $this->strQuery);
// Replace wildcards
if (($this->strQuery = @vsprintf($this->strQuery, $arrValues)) == false) {
throw new \Exception('Too few arguments to build the query string');
}
}