It's good not to build logic into your data. That's some pretty good advice, redesign your database so you can select data without having to look for inherent meaning.
table ingredients
----------------------
id, ingredient
e.g.
ID 1
NAME tea
ID 2
NAME milk
table products
------------------
id, product
e.g.
ID 1
NAME tea_with_milk
table crossref
--------------------------
id_product, id_ingredient
e.g.
1,1
1,2
$product = "tea_with_milk";
$result = mysql_query("SELECT t1.ingredient FROM ingredients as t1, products as t2, crossref as t3 WHERE t2.product = '".$product."' AND t2.id = t3.id_product AND t1.id = t3.id_ingredient");
The cross reference table is necessary to allow you an unlimited number of products and ingredients (without using 'intelligent' data).
Sorry if I misunderstood the problem 🙂