Database Error

Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'є, Е. Монгольф'є%' AND `Document`.`author_type` = 2) OR (`DocumentsC' at line 1

SQL Query: SELECT `Document`.`id`, `Document`.`name` FROM `fortecya`.`documents` AS `Document` LEFT JOIN `fortecya`.`documents_coauthors` AS `DocumentsCoauthor` ON (`Document`.`id` = `DocumentsCoauthor`.`document_id`) LEFT JOIN `fortecya`.`documents_persones` AS `DocumentsPersone` ON (`Document`.`id` = `DocumentsPersone`.`document_id`) WHERE ((`Document`.`author` LIKE '%Ж. Монгольф'є, Е. Монгольф'є%' AND `Document`.`author_type` = 2) OR (`DocumentsCoauthor`.`name` LIKE '%Ж. Монгольф'є, Е. Монгольф'є%') OR (`DocumentsPersone`.`name` LIKE '%Ж. Монгольф'є, Е. Монгольф'є%'))

Notice: If you want to customize this error message, create app/View/Errors/pdo_error.ctp

Stack Trace