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 (1539,1544,1546,1550,1553,1585,5181,627,629,630,631,632,633,635,636,63' 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 (1539,1544,1546,1550,1553,1585,5181,627,629,630,631,632,633,635,636,637,638,639,640,641,642,644,645,646,650,651,652,653,655,657,658,659,660,662,663,664,665,666,668,669,670,672,675,676,677,679,681,682,683,684,1452,686,687,688,689,1457,1458,691,692,693,1462,695,1464,1475,1479,1487,1490,1491,1496,1497,1506,1511,1516,1521,1524,1526,1532,1533)
                    
    [context] => /home/h907184914/himsnab-spb.ru/docs/core/components/comp_shop/module.php line 290
)