CodePudding user response:
This problem happens because call
is a reserved keyword. The solution is to surround it with backticks, like this:
UPDATE `groups` SET `call`='test' WHERE `group_id`='$group_id'
The backtick is the identifier quote character.
Note: I've used the query from your question, but for security reasons you should always use a prepared statement when inserting PHP variables in your queries.