/** * sql * * @return string */ public function query() { $sql = 'SELECT ' . $this->db->getColumn() . ' FROM ' . $this->getFullTableName() . $this->db->getJoin() . ' ' . $this->db->getWhere() . ' ' . $this->db->getGroup() . ' ' . $this->db->getHaving() . ' ' . $this->db->getOrder() . ' ' . $this->db->getLimit(); return $sql; }