foreach ($this->jtables as $table => $j)
XDB::execute("DELETE FROM {$table} WHERE {$j['joinid']} = {?}{$j['joinextra']}", $id);
XDB::execute("DELETE FROM {$this->table} WHERE {$this->idfield} = {?}",$id);
foreach ($this->jtables as $table => $j)
XDB::execute("DELETE FROM {$table} WHERE {$j['joinid']} = {?}{$j['joinextra']}", $id);
XDB::execute("DELETE FROM {$this->table} WHERE {$this->idfield} = {?}",$id);