In SQL queries involving custom fields, be careful to not use the field name without quoting, as it could be a reserved SQL keyword.
Closes #8987.
Authored by: cboos 2010-01-24
Parent: [r9061]
Child: [r9063]