BIGINT UNSIGNED value is out of range in '`yzrperde_awc`.`ps`.`quantity` - `yzrperde_awc`.`ps`.`out_of_stock`'

SELECT ps.`attributes`
FROM `awc_product_stock` ps
WHERE (ps.`id_product` = 818) AND ((ps.`quantity` - ps.`out_of_stock`) >= ps.`minimal_quantity`)
ORDER BY (ps.`quantity` - ps.`out_of_stock` - ps.`minimal_quantity`) DESC
 LIMIT 1