Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 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 'AND ( select COUNT(*) from rel_categorias_produtos where categorias_id = id) > 0' at line 1' in /www/sol_app/releases/4bae25a92f2a5c68235af5bc948e182df2085b51/vendor/zendframework/zendframework1/library/Zend/Db/Statement/Pdo.php:228 Stack trace: #0 /www/sol_app/releases/4bae25a92f2a5c68235af5bc948e182df2085b51/vendor/zendframework/zendframework1/library/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array) #1 /www/sol_app/releases/4bae25a92f2a5c68235af5bc948e182df2085b51/vendor/zendframework/zendframework1/library/Zend/Db/Statement.php(302): Zend_Db_Statement_Pdo->_execute(Array) #2 /www/sol_app/releases/4bae25a92f2a5c68235af5bc948e182df2085b51/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Abstract.php(468): Zend_Db_Statement->execute(Array) #3 /www/sol_ in /www/sol_app/releases/4bae25a92f2a5c68235af5bc948e182df2085b51/vendor/zendframework/zendframework1/library/Zend/Db/Statement/Pdo.php on line 234