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 (108) or (g.id in (44225,42313,39875,41924,41477,39874,35963,49076,56742,44710,47368,42311,44313,44712,44709,47829,49842,42310,39600,41183,41184,41923,44315,44347,55913,55917,56739,41473,49175,49176,49178,49522,55919,55912,31511,42309,56738,56744,56745,31525,34660,35961,39614,38679,40474,41185,41925,44223,44859,44714,46780,41475,42982,31522,35958,45365,42981,42307,43470,12028,10679,11602,8470,15774,13171,12034,12134,14440,10711,11596,12036,15422,15771,14254,14257,15426,11588,15776,6052,7632,10715,11150,11606,12169,13084,11751,8465,11750,11765,11592,11605,10680,14251,12135,11590,12137,13478,11589,11595,11604,12047,15424,11598,14255,14283,15421,15770,15777,8468,11144,12026,12139,11600,6050,12268,11586,6053,11597))) 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
)