Fatal error: Uncaught Exception: 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 '' at line 1<br />Error No: 1064<br />SELECT p.product_id as related_id FROM ap_product_to_category pc, ap_product p WHERE p.product_id != '6746' AND p.status = 1 AND p.product_id = pc.product_id AND pc.category_id = (SELECT category_id FROM ap_product_to_category WHERE product_id = '6746' LIMIT 1) LIMIT in /home/admin/www/apteka/system/library/db/mysqli.php:40 Stack trace: #0 /home/admin/www/apteka/system/library/db.php(45): DB\MySQLi->query() #1 /home/admin/www/apteka/storage/modification/catalog/model/catalog/product.php(1554): DB->query() #2 /home/admin/www/apteka/storage/modification/system/engine/loader.php(251): ModelCatalogProduct->getProductRelated() #3 /home/admin/www/apteka/system/engine/proxy.php(47): Loader->{closure}() #4 /home/admin/www/apteka/catalog/controller/product/product.php(720): Proxy->__call() #5 /home/admin/www/apteka/sto in /home/admin/www/apteka/system/library/db/mysqli.php on line 40