Fatal error: Uncaught mysqli_sql_exception: 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 'AND p.id_main!=15 AND p.id_mother=0 AND (mtp.id>0 || p.id_mother=0) AND p.hidden' at line 1 in /is/htdocs/wp12229414_PU17JRNWR0/www/shop80/classes/db.class.php:126
Stack trace:
#0 /is/htdocs/wp12229414_PU17JRNWR0/www/shop80/classes/db.class.php(126): mysqli_query(Object(mysqli), '(SELECT count(p...')
#1 /is/htdocs/wp12229414_PU17JRNWR0/www/shop80/classes/shop.class.php(1199): DB_SQL->query('(SELECT count(p...')
#2 /is/htdocs/wp12229414_PU17JRNWR0/www/shop80/search.php(146): Shop->count_ProductsByQuery(Object(DB_SQL), ' AND p.id_main...', true, NULL, false, true)
#3 {main}
thrown in /is/htdocs/wp12229414_PU17JRNWR0/www/shop80/classes/db.class.php on line 126