SET SQL_SAFE_UPDATES=0;
SET SQL_SAFE_UPDATES=0; orOR
Go to EditGo to --> PreferencesEdit --> Preferences
Click "SQL Queries"Click SQL Queries tab and uncheck "Safe Updates"uncheck Safe Updates check box
Query --> Reconnect to ServerQuery --> Reconnect to Server
Now execute your sql query