public function insert($table, $fieldvalues)
{
ksort($fieldvalues);
$fields = array_keys($fieldvalues);
$values = array_values($fieldvalues);
$query = "INSERT INTO {$table} ( " . implode(', ', $fields) . ' ) VALUES ( ' . implode(', ', array_fill(0, count($values), '?')) . ' )';
// need to pass $table on to the $o singleton object;
$this->current_table = $table;
return $this->query($query, $values);
}