Fatal error: Uncaught Dibi\DriverException: 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 P.price > 0 AND P.hidden = 0' at line 1 in /home/forge/devilsport.cz/home/system/vendor/dibi/dibi/src/Dibi/Drivers/MySqliDriver.php:179 Stack trace: #0 /home/forge/devilsport.cz/home/system/vendor/dibi/dibi/src/Dibi/Drivers/MySqliDriver.php(156): Dibi\Drivers\MySqliDriver::createException('You have an err...', 1064, 'SELECT MAX(P.pr...') #1 /home/forge/devilsport.cz/home/system/vendor/dibi/dibi/src/Dibi/Connection.php(316): Dibi\Drivers\MySqliDriver->query('SELECT MAX(P.pr...') #2 /home/forge/devilsport.cz/home/system/vendor/dibi/dibi/src/Dibi/Connection.php(234): Dibi\Connection->nativeQuery('SELECT MAX(P.pr...') #3 /home/forge/devilsport.cz/home/system/vendor/dibi/dibi/src/Dibi/dibi.php(250): Dibi\Connection->query(Array) #4 /home/forge/devilsport.cz/home/app/data/category.php(260): dibi::fetchSingle(Array, NULL) #5 /home/forge/devilspor in /home/forge/devilsport.cz/home/system/vendor/dibi/dibi/src/Dibi/Drivers/MySqliDriver.php on line 179