Notice: Trying to get property of non-object in /home/mjailton/domains/ on line 41 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/ Stack trace: #0 /home/mjailton/domains/ PDO->query('SELECT * FROM ...') #1 /home/mjailton/domains/ app\models\Bonus->listaBonus(NULL) #2 /home/mjailton/domains/ app\controllers\FormacaoController->ver('index.html') #3 /home/mjailton/domains/ Core->run() #4 {main} thrown in /home/mjailton/domains/ on line 13