Fatal error: Uncaught [42S22] - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'discount' in 'having clause' 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/Driver/RPDO.php(568): RedBeanPHP\Driver\RPDO->GetAll() #2 /var/www/kechiq/vendor/brainindev/redbean/RedBeanPHP/Adapter/DBAdapter.php(140): RedBeanPHP\Driver\RPDO->GetCol() #3 /var/www/kechiq/vendor/brainindev/redbean/RedBeanPHP/Facade.php(175): RedBeanPHP\Adapter\DBAdapter->getCol() #4 /var/www/kechiq/vendor/brainindev/redbean/RedBeanPHP/Facade.php(1294): RedBeanPHP\Facade::query() #5 /var/www/kechiq/system/dao/ProductDao.php(654): RedBeanPHP\Facade::getCol() #6 /var/www/kechiq/system/providers/Product.php(118): ProductDao->searchAttributesIds() #7 /var/www/kechiq/system/providers/Product.php(196): Product->search() #8 /var/www/kechiq/system/controllers/MainController.php(240): Product->searchCached() #9 /var/www/kechiq/system/init/di in /var/www/kechiq/vendor/brainindev/redbean/RedBeanPHP/Driver/RPDO.php on line 210