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 'ORDER BY principal DESC, aux ASC' at line 1' in /home/bctv2/public_html/lib/classes/produto.php:56
Stack trace:
#0 /home/bctv2/public_html/lib/classes/produto.php(56): PDO->query('SELECT foto_pro...')
#1 /home/bctv2/public_html/lib/classes/produto.php(19): produto->pegarFotos()
#2 /home/bctv2/public_html/lib/autoload.php(26): produto->__construct(NULL)
#3 /home/bctv2/public_html/index.php(5): loader('produto')
#4 {main}
thrown in /home/bctv2/public_html/lib/classes/produto.php on line 56