Fatal error: Uncaught exception 'Exception' with message 'Error: 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 '' at line 1
Error No: 1064
SELECT p.product_id,p.sku,ps.stock,s.name_storage,s.id_storage FROM `1c_mart_product_stock` as ps INNER JOIN `1c_mart_storage` as s ON(ps.id_storage=s.id_storage) INNER JOIN `oc_product` as p ON(p.product_id=ps.id_product) WHERE ps.id_storage IS NOT NULL AND p.product_id=' in /var/www/u0472475/data/www/ks-mo.ru/system/library/db/mysqli.php:40 Stack trace: #0 /var/www/u0472475/data/www/ks-mo.ru/system/library/db.php(16): DB\MySQLi->query('SELECT p.produc...', Array) #1 /var/www/u0472475/data/www/ks-mo.ru/catalog/model/stock/stock.php(27): DB->query('SELECT p.produc...') #2 [internal function]: ModelStockStock->getStoragesByProduct('') #3 /var/www/u0472475/data/www/ks-mo.ru/system/storage/modification/system/engine/loader.php(178): call_user_func_array(Array, Array) #4 [internal function]: Loader->{closure}(Array, Array) #5 /var/www/u0472475/data/www/ks-mo.ru/system/engine/proxy.php(25): call_user_func_array(Object(Closure), Array) #6 /var/www/u0472475/data/www/ks-mo.ru/system/storage/modification/catalog/controller/product/product.php(10): Proxy->__call('getStoragesByPr...', Array) #7 /var/www/u0472475/data/www/ks-mo.ru/system/storage/modification/catalog/controller/product/product.php(10): Proxy->getStoragesByProduct('') #8 [internal function]: ControllerProductProduct->index() #9 /var/www/u0472475/data/www/ks-mo.ru/system/storage/modification/system/engine/action.php(51): call_user_func_array(Array, Array) #10 /var/www/u0472475/data/www/ks-mo.ru/catalog/controller/startup/router.php(25): Action->execute(Object(Registry)) #11 [internal function]: ControllerStartupRouter->index() #12 /var/www/u0472475/data/www/ks-mo.ru/system/storage/modification/system/engine/action.php(51): call_user_func_array(Array, Array) #13 /var/www/u0472475/data/www/ks-mo.ru/system/engine/front.php(34): Action->execute(Object(Registry)) #14 /var/www/u0472475/data/www/ks-mo.ru/system/engine/front.php(29): Front->execute(Object(Action)) #15 /var/www/u0472475/data/www/ks-mo.ru/system/framework.php(103): Front->dispatch(Object(Action), Object(Action)) #16 /var/www/u0472475/data/www/ks-mo.ru/system/startup.php(105): require_once('/var/www/u04724...') #17 /var/www/u0472475/data/www/ks-mo.ru/index.php(25): start('catalog') #18 {main} thrown in /var/www/u0472475/data/www/ks-mo.ru/system/library/db/mysqli.php on line 40