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 MySQL server version for the right syntax to use near ') AND !(p.id_brand IN (380) AND p.id_anticipa_supplier IN (45,44)) AND !(p.id IN' at line 46
trace: #0 /var/www/kechiq/vendor/brainindev/redbean/RedBeanPHP/Driver/RPDO.php(547): RedBeanPHP\Driver\RPDO->runQuery()
#1 /var/www/kechiq/vendor/brainindev/redbean/RedBeanPHP/Adapter/DBAdapter.php(118): RedBeanPHP\Driver\RPDO->GetAll()
#2 /var/www/kechiq/vendor/brainindev/redbean/RedBeanPHP/Facade.php(175): RedBeanPHP\Adapter\DBAdapter->get()
#3 /var/www/kechiq/vendor/brainindev/redbean/RedBeanPHP/Facade.php(1226): RedBeanPHP\Facade::query()
#4 /var/www/kechiq/system/dao/ProductDao.php(590): RedBeanPHP\Facade::getAll()
#5 /var/www/kechiq/system/providers/Product.php(98): ProductDao->search()
#6 /var/www/kechiq/system/providers/Product.php(197): Product->search()
#7 /var/www/kechiq/system/controllers/BrandContro in /var/www/kechiq/vendor/brainindev/redbean/RedBeanPHP/Driver/RPDO.php on line 210