Error in database procedure.

SQL failed.

Error: 1064, [MySQL][ODBC 3.51 Driver][mysqld-5.6.36]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 'Assumpção de Cabo Frio')' at line 1, 1

SQL Statement was SELECT COUNT(*) AS resultcount FROM archiveimages WHERE (VolumeName = 'Livro de Batismos (1883-1889), 1883-10-10 a 1887-07-18, Freguesia de Nossa Senhora d/'Assumpção de Cabo Frio')