update SQL for findAllCondition