where('pid='.$prz[$c]['id'][$key]['id'] )
改
$where = array();
$where['pid'] = $prz[$c]['id'][$key]['id'];
$where['reend'] = 1;
$prz[$c]['id'][$key]['id'] = $product->where($where)->order("eid desc")->select();
$where=array('字段名'=>'条件1','字段名'=>'条件2');$this–>where($were)后面的就不写了
最后再来个预处理
数组