Constantly comes an error about SQL syntax. I can not understand where to look. Tell me how to catch it?
Tried to search through links on the website and doing the actions in the admin area. Never found. Error in production, but in the copy it is impossible to repeat.
[2019-12-19 18:22:06] (ERROR @ /home/site.ru/core/xpdo/om/xpdoobject.class.php : 240) Error 42000 executing statement:
 => 42000
 => 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 ') DESC' at line 1
upd. Who encounter such a situation, you can correct this string in xpdoobject.class.php and add the output of the full sql of the query.
$xpdo->log(xPDO::LOG_LEVEL_ERROR, 'Error' . $criteria->stmt->errorCode() . "executing statement: \n" . print_r($errorInfo, true) . 'SQL' . $criteria->toSQL());