protected function buildIn($ar,&$bindparams,$varprefix = 'v') {
		$x=1;
		foreach ($ar as $value) {
			$sql .= ":{$varprefix}{$x},";
			$bindparams[":{$varprefix}{$x}"] = $value;
			$x++;
		}
		return 'IN ('.rtrim($sql,',').')';
	}
protected function buildIn($ar,&$bindparams,$varprefix = 'v') {
		$x=1;
		foreach ($ar as $value) {
			$sql .= ":{$varprefix}{$x},";
			$bindparams[":{$varprefix}{$x}"] = $value;
			$x++;
		}
		return 'IN ('.rtrim($sql,',').')';
	}
protected function buildIn ( $ ar , & $ bindparams , $ varprefix = 'v' ) { $ x = 1 ; foreach ( $ ar as $ value ) { $ sql .= ":{$varprefix}{$x}," ; $ bindparams [ ":{$varprefix}{$x}" ] = $ value ; $ x ++ ; } return 'IN (' . rtrim ( $ sql , ',' ) . ')' ; }
Returns a parametrized IN clause for use in a prepared statement
@param mixed[] $ar An array of values representing the contents of the IN clause
@param mixed[] $bindparams A reference to the caller's array of binded parameters
@param string $varprefix Can be used to avoid bind parameter naming collisions when calling multiple times within 1 statement
@return string The resulting IN clause
Returns a parametrized IN clause for use in a prepared statement