No mi correggo funziona
$query2 = "UPDATE products, appoggio
SET products_quantity = quantita,
products_last_modified = '$data'
WHERE (products_id = id ) AND ( quantita > products_quantity )";