Fatal error: Uncaught mysqli_sql_exception: 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 (( p.type IN ('r','q') AND p.active='y' AND pw.amount>0 ) OR (p.type ...' at line 39 in /www/webvol39/x3/8j3fz44ljkxf0ix/lastrega.softart.rs/public_html/app/class/Category.php:562
Stack trace:
#0 /www/webvol39/x3/8j3fz44ljkxf0ix/lastrega.softart.rs/public_html/app/class/Category.php(562): mysqli->query('INSERT INTO tmp...')
#1 /www/webvol39/x3/8j3fz44ljkxf0ix/lastrega.softart.rs/public_html/app/controller/controller_categories.php(136): Category::getCategoryProductDetail(Array, 1, '12', '', 'ASC', 'sort', false, '', '')
#2 /www/webvol39/x3/8j3fz44ljkxf0ix/lastrega.softart.rs/public_html/app/controller/controller_main.php(70): include('/www/webvol39/x...')
#3 /www/webvol39/x3/8j3fz44ljkxf0ix/lastrega.softart.rs/public_html/index.php(176): include('/www/webvol39/x...')
#4 {main}
thrown in /www/webvol39/x3/8j3fz44ljkxf0ix/lastrega.softart.rs/public_html/app/class/Category.php on line 562