An error has occured

DB Error: syntax error

SELECT * FROM agent WHERE ( concat(fname, ' ', lname) = 'J.O. O'brien' ) [nativecode=1064 ** 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 'brien' )' at line 4]

Please contact the Library Reference Department for assistance
support@myuniversity.edu

[966] /usr/local/lib/php/DB.php
[564] /usr/local/lib/php/PEAR.php
[1903] /usr/local/lib/php/DB/common.php
[898] /usr/local/lib/php/DB/mysql.php
[327] /usr/local/lib/php/DB/mysql.php
[1216] /usr/local/lib/php/DB/common.php
[2384] /usr/local/lib/php/DB/DataObject.php
[442] /usr/local/lib/php/DB/DataObject.php
[65] /office/www/html/commbib/services/Author/Home.php
[105] /office/www/html/commbib/index.php