0005995: search with spaces only causes MySQL exception