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 (1585,2641,4440,3174,3181,3183,4221,4222,4223,4224,2177,2178,2179,2180' 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 (1585,2641,4440,3174,3181,3183,4221,4222,4223,4224,2177,2178,2179,2180,2181,2182,2183,2184,2185,2186,2187,2957,3239,3240,3241,3242,3243,3244,4553,4561,4086,4087,4088,4089,4090)
                    
    [context] => /home/h907184914/himsnab-spb.ru/docs/core/components/comp_shop/module.php line 290
)