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,',').')';
	}