SQL Error: 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 'OR ((`category_id`<>146 AND `category_id`<>1431 AND `category_id`<>1430) AND `ad' at line 1 at /bhome/part2/01/antes/antes.ru/www/functions/productClass.php line 26
Array
(
[code] => 1064
[message] => 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 'OR ((`category_id`<>146 AND `category_id`<>1431 AND `category_id`<>1430) AND `ad' at line 1
[query] => SELECT p.*, s.sort as `supplier_sort` FROM antes_products p LEFT JOIN antes_suppliers s ON p.supplier_id=s.id WHERE (`category_id`= OR ((`category_id`<>146 AND `category_id`<>1431 AND `category_id`<>1430) AND `add_category_ids` LIKE '%,,%')) AND p.`id`<> ORDER BY `supplier_sort`, `sort`, `title`
[context] => /bhome/part2/01/antes/antes.ru/www/functions/productClass.php line 26
)