- Took out the text select statement. I don't know why it was there SELECT bf.featureid, pf.price FROM basketfeatures bf, productfeatures pf WHERE bf.pid=:bigdb_id AND bf.customid=:basket2_customid AND bf.featureid=pf.id AND bf.custid=:custid AND bf.storeid=:storeid