Using the auto-complete text field type in the Search module of a grid - if there is an apostrophe in the text (i.e., “Annuals aren’t Annual”) when trying to run the grid with the filter applied, because there is an apostrophe, the report doesn’t run. A MySQL error message is generated because the apostrophe (which is part of the SQL) is an out-of-place character.
Somehow, this needs to be escaped?
EX:
Error
Error while accessing the database:
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 ‘t Annual!’ order by trainingtitle’ at line 1
select trainingtitle, trainingtitle from mgtraining where uid = 132 and trainingtitle = ‘Annuals Aren’t Annual!’ order by trainingtitle