Fatal error: Uncaught [42000] - 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 ')' at line 17 trace: #0 /home/dassy/apps/proteq/vendor/redbeanphp/rb.php(881): RedBeanPHP\Driver\RPDO->runQuery('SELECT DISTINCT...', Array) #1 /home/dassy/apps/proteq/vendor/redbeanphp/rb.php(3426): RedBeanPHP\Driver\RPDO->GetAll('SELECT DISTINCT...', Array) #2 /home/dassy/apps/proteq/vendor/redbeanphp/rb.php(10259): RedBeanPHP\Adapter\DBAdapter->get('SELECT DISTINCT...', Array) #3 /home/dassy/apps/proteq/vendor/redbeanphp/rb.php(10895): RedBeanPHP\Facade::query('get', 'SELECT DISTINCT...', Array) #4 /home/dassy/apps/proteq/custom/functions.php(5878): RedBeanPHP\Facade::getAll('SELECT DISTINCT...', Array) #5 /home/dassy/apps/proteq/index.php(641): getModels('category', NULL, Array, '', false) #6 /home/dassy/apps/proteq/fr-be.php(2): include('/home/dassy/app...') #7 {main} thrown in /home/dassy/apps/proteq/vendor/redbeanphp/rb.php on line 719