public function replaceTableInConditions($conditions, $oldTable, $newTable) {
		foreach($conditions as $k=>$v) {
			if(is_array($v))
				$v = $this->replaceTableInConditions($v, $oldTable, $newTable);
			else
				$v = preg_replace('/(?<![a-zA-Z0-9_])'.$oldTable.'\./', $newTable.'.', $v);

			if(is_string($k)) {
				$newK = preg_replace('/(?<![a-zA-Z0-9_])'.$oldTable.'\./', $newTable.'.', $k);
				unset($conditions[$k]);
				$conditions[$newK] = $v;
			}
			else
				$conditions[$k] = $v;
		}
		return $conditions;
	}