Fatal error: Uncaught exception 'PDOException' with message '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/maocheia/public_html/libs/db.class.php:132
Stack trace:
#0 /home/maocheia/public_html/libs/db.class.php(132): PDOStatement->execute(NULL)
#1 /home/maocheia/public_html/app/controller.php(652): db->query('SELECT promo_va...')
#2 /home/maocheia/public_html/app/model.php(339): Controller::get_promo(NULL)
#3 /home/maocheia/public_html/app/controller.php(126): Model->artigo(Array)
#4 /home/maocheia/public_html/app/controller.php(34) : eval()'d code(1): Controller->artigo()
#5 /home/maocheia/public_html/app/controller.php(34): eval()
#6 /home/maocheia/public_html/app/core.php(19): Controller->__construct()
#7 /home/maocheia/public_html/index.php(9): require('/home/maocheia/...')
#8 {main}
thrown in /home/maocheia/public_html/libs/db.class.php on line 132