public function delete($table, $where, $where_tokens = [], $affected_rows = false) {
		// add tokens of where clause
		$values = [];
		if (is_scalar($where_tokens)) $where_tokens = [$where_tokens];
		foreach ($where_tokens as $value) {
			$values[] = $value;
		}
		
		$query = "DELETE FROM `$table` $where";

		$this->connect();
		$sth = $this->prepare($query);
		
		$returner['SUCCESS'] = $sth->execute($values);
		if ($affected_rows) $returner['AFFECTED_ROWS'] = $sth->rowCount();
		return $returner;
	}