protected function buildUpdateStatement($id,$data,$table=null) {
		if (!$table) {
			$table = $this->primaryTable;
		}
		$sql = "UPDATE {$table} SET ";
		foreach ($data as $field=>$value) {
			$sql .= "{$field}=:{$field},";
			$bindparams[":{$field}"] = $value;
		}
		
		$sql = rtrim($sql,',')." WHERE id=:id";
		$bindparams[":id"] = $id;
		if ($this->executeUpdate($sql,$bindparams)) {
			return true;
		}
		return false;
	}