Well,
That would suggest that the syntax of the query was wrong or that you do not have the update grant permission in mysql.
Does your query look like this???
UPDATE db_name.table_name SET column_name='column_value' WHERE other_column_name='other_column_value'