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 'function = ''
AND DATE(date_created) = CURDATE()' at line 8' in /home/stg6common/repo/classes/Audit.php:85
Stack trace:
#0 /home/stg6common/repo/classes/Audit.php(85): PDOStatement->execute()
#1 /home/stg6common/repo/classes/Audit.php(23): Audit::checkRecord('audit_errors', 'error.php', 'https://staging...', '', false, true, 10)
#2 /home/staging6gourmet/repo/www/error.php(8): Audit::error('', 'error.php', 'https://staging...', '', '')
#3 {main}
thrown in /home/stg6common/repo/classes/Audit.php on line 85