Extra brackets lead to SQL error

I guess those two brackets were forgotten when somebody introduced the line above this. Unfortunately, MySQL dies screaming when this gets executed…