$ji = $d->autoJoin();
//print_R($jinfo);
// get cols
-
+ foreach($ji['cols'] as $cname=>$fname) {
+ $this->selectAdd($fname . ' as ontable_id_' . $cname );
+ }
//$this->selectAdd($d->_query['data_select']); -- this will cause the same dataIndex...
$this->_join .= "