I am trying to update row 3(id=8) in my table here 
Using the following query:
UPDATE player_ban
SET until = Now(),
unbanned_by = "MrSnare",
unbanned_reason = "test",
unbanned_date = Now()
WHERE name = "MCYasman"
& unbanned_by = NULL
& until > NOW();
The query is running but no rows are being updated.
What is going wrong?
I would alter your query to use
ANDinstead of the&andunbanned_by IS NULL. So the query will be:An value will never be
= null, you have to useIS NULL.