protected function _from_tables() { if (!empty($this->qb_join) && count($this->qb_from) > 1) { return '(' . implode(', ', $this->qb_from) . ')'; } return implode(', ', $this->qb_from); }