ERROR: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 category IS NULL AND subcategory IS NULL) OR (ca...' at line 2
Last Executed Query:SELECT percent FROM `fxr_discount` WHERE ( (brand = AND category IS NULL AND subcategory IS NULL) OR (category = AND brand = ) OR (subcategory = AND brand = ) OR (category = AND brand IS NULL) OR (subcategory = AND brand IS NULL) ) AND start_date <= NOW() AND end_date >= NOW() ORDER BY percent DESC LIMIT 1
Fatal error: Uncaught exception 'Exception' with message 'SQL_EXEPTION' in /home/fx/public_html/classes/database/ff_sql.class.php:317 Stack trace: #0 /home/fx/public_html/classes/database/ff_sql.class.php(283): FF_SQL->Query('SELECT percent ...') #1 /home/fx/public_html/mods/shoppingCart.php(23): FF_SQL->getQueryRow('SELECT percent ...') #2 /home/fx/public_html/classes/core/modLoader.class.php(69): ShoppingCartModule->load() #3 /home/fx/public_html/classes/core/Site.class.php(515): modLoader->execute('After_Init_Core') #4 /home/fx/public_html/classes/core/Site.class.php(818): Site->InitCore() #5 /home/fx/public_html/index.php(43): Site->__construct() #6 {main} thrown in /home/fx/public_html/classes/database/ff_sql.class.php on line 317