fixed query to search by name