delete_by was not joining conditions with interspaced AND.