Fatal error: Uncaught PDOException: 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 e_a.rid > 0' at line 1 in /opt/apps/sg-2/htdocs/dooframework/db/DooSqlMagic.php:327
Stack trace:
#0 /opt/apps/sg-2/htdocs/dooframework/db/DooSqlMagic.php(327): PDOStatement->execute()
#1 /opt/apps/sg-2/htdocs/coreframework/module/entity/class/apiEntity.php(11966): DooSqlMagic->query('SELECT count(*)...')
#2 /opt/apps/sg-2/htdocs/coreframework/module/entity/controller/EntityController.php(568): apiEntity->getAccess('view', Array)
#3 /opt/apps/sg-2/htdocs/coreframework/app/CoreWebApp.php(179): EntityController->view()
#4 /opt/apps/sg-2/htdocs/coreframework/app/CoreWebApp.php(35): CoreWebApp->routeTo()
#5 /opt/apps/sg-2/htdocs/coreframework/app/CoreApp.php(1156): CoreWebApp->run()
#6 /opt/apps/sg-2/htdocs/coreframework/app/CoreApp.php(1206): CoreApp->_run()
#7 /opt/apps/sg-2/htdocs/index.php(34): in /opt/apps/sg-2/htdocs/dooframework/db/DooSqlMagic.php on line 327