1) { $field = array_pop($a); $reference = implode(".",$a); $name = end($a); $this->query->load($reference, false); $alias = $this->query->getTableAlias($reference); $tname = $this->query->getTable($alias)->getTableName(); $r = $alias.".".$field; if(isset($e[1])) $r .= " ".$e[1]; } $ret[] = $r; } return implode(", ", $ret); } public function __toString() { return ( ! empty($this->parts))?implode(", ", $this->parts):''; } }