File nshop/dbresult.php, line 14], message Query failed: 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 'and c.DFS_right<=)' at line 4 ( select round(max(pc.commission/pc.price)*100) from product_variants pv join price_cache pc on(pv.id=pc.variant_id and pc.broker_id=0) where pv.product_id in (select cp.product_id from categories c join category_products cp on(c.id=cp.category_id) where c.DFS_left>= and c.DFS_right<=)).
Trace:
File nshop/dbconnection.php, line 60, class/function dbresult->dbresult, arg0 object(mysqli)#4 (19) { ["affected_rows"]=> int(-1) ["client_info"]=> string(79) "mysqlnd 5.0.12-dev - 20150407 , arg1 string(337) " select round(max(pc.commission/pc.price)*100) from product_variants pv .
File nshop/category_listing.php, line 55, class/function dbconnection->query, arg0 string(337) " select round(max(pc.commission/pc.price)*100) from product_variants pv .
File nshop/nshop.php, line 60, class/function category_listing->out_body.
File index.php, line 32, class/function nshop->out_body.