Fix: advanced search only for SQL