Array
(
    [sql] =>  SELECT count(*) as count, max(price_usd * IF(currency=1,26.2,IF(currency=2,32.2,1))) as max, min(price_usd*IF(currency=1,26.2,IF(currency=2,32.2,1))) as min FROM catalog_products AS c  WHERE 1  AND c.cat_id IN (361,480,481,482,483,484,486,487,535,536,543) AND c.brand_id IN (,121,117)  AND c.hide = 0 ORDER BY c.sort ASC 
    [info] => Array
        (
            [0] => 42000
            [1] => 1064
            [2] => 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 '121,117)  AND c.hide = 0 ORDER BY c.sort ASC' at line 1
        )

)