When we try to export leads from our installation of SugarCRM CE 6.5.11 we receive the following error message: "Database failure. Please refer to sugarcrm.log for details."
We'll need for you to fix this bug and document what was done to resolve the problem.
Full sugarcrm.log attached
MySQL error 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 ' LTRIM(RTRIM(CONCAT(IFNULL(relJoin5.first_name,''),' ',IFNULL(relJoin5.last_name' at line 3