Another victim of mysql's sloppy syntax.
"INNER JOIN and , (comma) are semantically equivalent in the absence of a join condition: both produce a Cartesian product between the specified tables (that is, each and every row in the first table are joined to all rows in the second table)."
Make your join EXPLICIT and use a join condition to solve that problem.
That said: I see that you are trying to update the ffnumber in both tables. Difficult if you are going to do the join on them! 🆒
Are you sure you've got your database logic and schema thought through properly? Unusual to be updating a PK:FK pair at any time. IDs used as PK:FK are generally for internal database use and best created without any meaning to the outside world. That way they should not need updating, except when the wrong value is inserted as the FK by accident or error.