It should be
UPDATE permissions SET allow = 1 WHERE user=671156 AND permission=16 AND org=101 OR org=102;
(user=671156 AND permission=16 AND org=101) OR (org=102)
As far as my career goes, it has given me a wealth of perspective on the different tools people are using to solve their problems.
It should be