MySQL Error
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 'AND id in (4864,4865,4866,4867,5123,4868,5124,4869,4870,4875,1040,1041,1585,1870' at line 1
    [query] =>   SELECT * , IF(`sale_price` > 0, `sale_price`, `price`) as sort_price    FROM core_shop_products    WHERE `show`="1" AND id_brand =  AND id in (4864,4865,4866,4867,5123,4868,5124,4869,4870,4875,1040,1041,1585,1870,4448,4449,4450,4451,4452,4453,4454,4455,4456,4457,4458,4459,4460,4461,4462,1135,3183,4465,4466,941,944,697,1223,4818,983,1246,4318,4321,4322,4323,4324,4854,4855,4856,1785,4857,4858,4859,4860,4861,4862,4863)
                    
    [context] => /home/h907184914/himsnab-spb.ru/docs/core/components/comp_shop/module.php line 290
)