An Error Was Encountered

Error Number: 1690

BIGINT UNSIGNED value is out of range in '(`terra`.`items_t1`.`kpp_distance` - 39)'

SELECT * FROM `items`,`items_t1` WHERE `items`.`id`=`items_t1`.`id_item` AND (`items`.`id`!=480) AND (`items_t1`.`target`=2 AND ((`items_t1`.`target`!=4 AND `items_t1`.`undtarget`=0) OR (`items_t1`.`target`=4 AND `items_t1`.`undtarget_other`=''))) AND (`items`.`region`=9 AND ((`items`.`region`=9 AND `items`.`undregion`=4) OR (`items`.`region`!=9 AND `items`.`undregion_other`=''))) ORDER BY ABS(`items_t1`.`kpp_distance`-39) ASC,ABS(`items`.`price`-1200) ASC,ABS(`items_t1`.`size_area`-2) ASC,`items`.`id` DESC LIMIT 20