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 (1324,1328,1329,1332,1351,1363,1365,1366,1371,1377,1378,1380,1381,1382' 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 (1324,1328,1329,1332,1351,1363,1365,1366,1371,1377,1378,1380,1381,1382,1386,1387,1402,1403,1404,1416,1428,1434,1443,1446,1447)
                    
    [context] => /home/h907184914/himsnab-spb.ru/docs/core/components/comp_shop/module.php line 290
)