Array
(
    [0] => SELECT count(g.good_id) as kol FROM at_brands b  
			  LEFT JOIN at_goods g ON g.brand_id=
			  WHERE b.brand_status=1 and g.good_status=1
			  GROUP BY g.brand_id 
    [1] => 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 'WHERE b.brand_status=1 and g.good_status=1
			  GROUP BY g.bra
)