Notice: Trying to get property of non-object in /home/mjailton/domains/mjailton.com.br/public_html/lojavirtual/app/controllers/PacoteController.php on line 50 Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 in /home/mjailton/domains/mjailton.com.br/public_html/lojavirtual/app/models/Formacao.php:40 Stack trace: #0 /home/mjailton/domains/mjailton.com.br/public_html/lojavirtual/app/models/Formacao.php(40): PDO->query('SELECT * FROM f...') #1 /home/mjailton/domains/mjailton.com.br/public_html/lojavirtual/app/controllers/PacoteController.php(59): app\models\Formacao->getFormacao(NULL) #2 /home/mjailton/domains/mjailton.com.br/public_html/lojavirtual/app/controllers/PacoteController.php(50): app\controllers\PacoteController->qtdeAulaPorFormacao(NULL) #3 /home/mjailton/domains/mjailton.com.br/public_html/lojavirtual/app/core/Core.php(16): app\controllers\PacoteController->detalhe('modelagem-de-da...') #4 /home/mjailton/domains/mjailton.com.br/public_html/lojavirtual/index.php(11): Core->run() #5 in /home/mjailton/domains/mjailton.com.br/public_html/lojavirtual/app/models/Formacao.php on line 40