changed order of Where for delete_by