$select = $read->select()
                       ->from(array('cp'=>$categoryProductTable)); 
                       -join(array('pei'=>$productEntityIntTable,'pei.entity_id=cp.pruduct_id',array())
                       -joinNatural(array('ea'=>$eavAttributeTable))
                       ->where('cp.category_id=?',$categoryId)
                       ->where('pei.value=1')
                       ->where('ea.attribute_code="featured"');    这是程序的一段,运行提示->where('ea.attribute_code="featured"');    的错误是
Parse error: syntax error, unexpected ';' in /var/www/app/code/local/Cartz/Hotel/Block/Featured.php on line 29怎么瞧怎么看,怎么改都解决不了。帮下忙,谢谢。

解决方案 »

  1.   


                    ->from(array('cp'=>$categoryProductTable)); 
                    ->join(array('pei'=>$productEntityIntTable,'pei.entity_id=cp.pruduct_id',array()) 
                    ->joinNatural(array('ea'=>$eavAttributeTable)) 
      

  2.   

                    ->from(array('cp'=>$categoryProductTable)); 
                    ->join(array('pei'=>$productEntityIntTable,'pei.entity_id=cp.pruduct_id',array()) 
                    ->joinNatural(array('ea'=>$eavAttributeTable))