getSelectSQL(), $this->getFromSQL(), $this->getJoinSQL(), $this->getWhereSQL(), $this->getGroupBySQL(), $this->getHavingSQL(), $this->getOrderBySQL(), $this->getLimitSQL(), $this->getOffsetSQL(), $this->getUnionSQL() ); // Trim double spaces added by DB::prepare return str_replace( [' ', ' '], ' ', implode(' ', $sql) ); } }