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 (code_search='590301075' and brand_id=2444) OR (code_search='DC91740RY' and' at line 1 at /var/www/ino-marochka/data/www/ino-marochka.ru/adm/lib/php/cms_sql/class_tecdoc.php line 444
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 (code_search='590301075' and brand_id=2444) OR (code_search='DC91740RY' and' at line 1
    [query] => SELECT id FROM cms_product WHERE (code_search='595404083' and brand_id=) OR (code_search='590301075' and brand_id=2444) OR (code_search='DC91740RY' and brand_id=1948) OR (code_search='DC90720RY' and brand_id=1948) OR (code_search='DC100850RY' and brand_id=1948) OR (code_search='600401085' and brand_id=2444) OR (code_search='585900075' and brand_id=2444) OR (code_search='590301075' and brand_id=2444) OR (code_search='DC91740RY' and brand_id=1948) OR (code_search='DC90720RY' and brand_id=1948) OR (code_search='DC100850RY' and brand_id=1948) OR (code_search='600401085' and brand_id=2444) OR (code_search='7905699' and brand_id=1951)
    [context] => /var/www/ino-marochka/data/www/ino-marochka.ru/adm/lib/php/cms_sql/class_tecdoc.php line 444
)