// then we can build a join..
$d = DB_DataObject::Factory($q['ontable']);
$ji = $d->autoJoin();
- echo '<PRE>';print_R($jinfo);
+ echo '<PRE>';print_R($ji);
// get cols
foreach($ji['cols'] as $cname=>$fname) {
//$this->selectAdd($fname . ' as ontable_id_' . $cname );