Added missing WHERE to DELETE statement line 240.