Chapter 13 Logging and Reporting : Troubleshooting and logging : Log database issues : SQL statement syntax errors
  
SQL statement syntax errors
There may be errors or inconsistencies in the SQL used to maintain the database. Here are some example error messages and possible causes:
You have an error in your SQL syntax (remote/MySQL) or
ERROR: syntax error at or near... (local/PostgreSQL)
Verify that the SQL keywords are spelled correctly, and that the query is well-formed.
Table and column names are demarked by grave accent (`) characters. Single (') and double (") quotation marks will cause an error.
No data is covered.
The query is correctly formed, but no data has been logged for the log type. Verify that you have configured the FortiGate unit to save that log type. On the Log Settings page, make sure that the log type is checked.