diff --git a/vendor/model/FinancialCategories.class.php b/vendor/model/FinancialCategories.class.php index ed2adc0..f7f2bcd 100644 --- a/vendor/model/FinancialCategories.class.php +++ b/vendor/model/FinancialCategories.class.php @@ -135,14 +135,16 @@ class FinancialCategories } /** Consulta SQL */ - $this->sql = 'select * from financial_categories '. $this->limit; + $this->sql = 'select * from financial_categories '; /** Verifica se alguma descrição foi informada */ if($this->description){ $this->sql .= ' where description like concat(\'%\', :description, \'%\') '; - } + } + + $this->sql .= $this->limit; /** Preparo o SQL para execução */ $this->stmt = $this->connection->connect()->prepare($this->sql);