SQL Error: BIGINT UNSIGNED value is out of range in '((`db_sld_29`.`g`.`sklad` + `db_sld_29`.`g`.`in_list`) - `db_sld_29`.`g`.`noshow`)' at /var/www/sld/data/www/site12/public_html/lib/php/cms_sql/class.php line 1984
Array
(
    [code] => 1690
    [message] => BIGINT UNSIGNED value is out of range in '((`db_sld_29`.`g`.`sklad` + `db_sld_29`.`g`.`in_list`) - `db_sld_29`.`g`.`noshow`)'
    [query] => SELECT count(*) FROM
				(
				SELECT g.id
				FROM cms_good g
				LEFT JOIN cms_ref_vendor v	ON v.id=g.vendor_id
				LEFT JOIN cms_good_alias a	ON g.id=a.good_id
				     JOIN cms_good_tree gt	ON gt.id=g.pid
				LEFT JOIN cms_good_markup m	ON m.good_tree_id=gt.id AND m.distributor_id=1
				LEFT JOIN cms_prop_field pf	ON pf.prop_id=gt.prop_id
				LEFT JOIN cms_field f		ON f.id=pf.field_id
				
				WHERE TRUE  AND ((sklad+in_list-noshow) > 0 AND (g.pid IN (130) or (g.id in (1431,1432,2322,2716,2718,4041,6634,6941,6942,6943,7706,7779,8046,8679,10531,10974,10978,10979,10980,10984,10985,10986,11025,11027,11028,11036,11406,11600,11647,12026,12169,14210,14400,14686,15061,15154,15181,15182,15184,15420,15345,15551,15597,15679,15778,15779,15795,15870,15875,15851,15806,15810,15895,15894,15985,17752,17753,17761,17750,17724,17725,17726,17727,17728,17730,17758,16707,16745,16815,16816,16819,16821,16822,17080,17176,17756,17751,17383,18140,18170,18244,18256,18567,18840,18843,18853,18893,18916,18934,18935,19143,19211,19212,20141,20142,20143,20144,20190,20196,20205,20207,20208,20210,20298,20299,20304,20305,20306,20330,20335,19949,20451,20455,20465,20501,20468,18093,15808,15183,17079))) AND status=1) GROUP BY g.id) as foo
    [context] => /var/www/sld/data/www/site12/public_html/lib/php/cms_sql/class.php line 1984
)