Warning: Trying to access array offset on value of type null in /var/www/p750814/data/www/apteka-china.ru/in/katalog.php on line 121

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 'UNION SELECT * FROM tovar WHERE tovid IN (SELECT tovid FROM tovincat WHERE' at line 3 in /var/www/p750814/data/www/apteka-china.ru/class/class.init.php:142 Stack trace: #0 /var/www/p750814/data/www/apteka-china.ru/class/class.init.php(142): mysqli_query() #1 /var/www/p750814/data/www/apteka-china.ru/in/katalog.php(157): bdb->query() #2 /var/www/p750814/data/www/apteka-china.ru/index.php(171): include('/var/www/p75081...') #3 {main} thrown in /var/www/p750814/data/www/apteka-china.ru/class/class.init.php on line 142