public function getField($fld) { if ($this->main_table === false) { throw $this->exception('Cannot use getField() when multiple tables are queried'); } return $this->expr($this->bt($this->main_table) . '.' . $this->bt($fld)); }