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 MariaDB server version for the right syntax to use near ')' at line 1 trace: #0 /sites/tradingroutes.ru/libs/rb.php(1041): RedBeanPHP\Driver\RPDO->runQuery('SELECT MIN(p.pr...', Array) #1 /sites/tradingroutes.ru/libs/rb.php(4167): RedBeanPHP\Driver\RPDO->GetAll('SELECT MIN(p.pr...', Array) #2 /sites/tradingroutes.ru/libs/rb.php(12222): RedBeanPHP\Adapter\DBAdapter->get('SELECT MIN(p.pr...', Array) #3 /sites/tradingroutes.ru/libs/rb.php(13154): RedBeanPHP\Facade::query('get', 'SELECT MIN(p.pr...', Array) #4 /sites/tradingroutes.ru/functions.php(3008): RedBeanPHP\Facade::getAll('SELECT MIN(p.pr...', Array) #5 /sites/tradingroutes.ru/supplier_details.php(83): get_products_amount_range(NULL, NULL, NULL, Array, NULL) #6 {main} thrown in /sites/tradingroutes.ru/libs/rb.php on line 774