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 '-24' at line 1 in /home/racoucho/renaud/classes/MySQL.class.php:62
Stack trace:
#0 /home/racoucho/renaud/classes/MySQL.class.php(62): PDO->query('SELECT * FROM a...')
#1 /home/racoucho/renaud/classes/DataFactory.class.php(36): MySQL->__call('query', Array)
#2 /home/racoucho/renaud/gallery.php(44): DataFactory->get('YEAR(shootingda...', 'shootingdate as...', 24, 0)
#3 {main}
thrown in /home/racoucho/renaud/classes/MySQL.class.php on line 62