Please I need your help ! I am creating an application that manages the articles for each page with zend framework 1. I want to display for each page its articles.
public function getPagearticle(){
$db = Zend_Db_Table::getDefaultAdapter();
$select = new Zend_Db_Select($db);
$select = $db->select()
->from(array('a' => 'articles'), array('page_id', 'Nom_article'))
->join(array('p' => 'pages'), 'p.id = a.page_id',array('p.nom'));
$resultRows = $this->fetchAll($select);
}
but I got this error :SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1, query was: SELECT articles
.* FROM articles
WHERE (
Thank you for helping me