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 'Learning GROUP BY magID ORDER BY magDate DESC, magID DESC' at line 4 in /homepages/24/d204534154/htdocs/test/classes/misc.php:126
Stack trace:
#0 /homepages/24/d204534154/htdocs/test/classes/misc.php(126): PDOStatement->execute()
#1 /homepages/24/d204534154/htdocs/test/magazines.php(11): Misc->getBrochures()
#2 {main}
thrown in /homepages/24/d204534154/htdocs/test/classes/misc.php on line 126