The potion and flower are for 2 different things. But first the flower to the count and then go to the prison and talk to the only person in the jail cell.