Mysql
 sql >> Database >  >> RDS >> Mysql

Aderire a Zend Framework

Prova ad aggiungere un groupBy alla tua query (non testato)

$select = $this->_db->select()->from('reviews')
                              ->joinLeft('users', 'reviews.reviewer_id = users.id')
                              ->joinLeft('websites', 'reviews.user_id = reviews.user_id')
                              ->where("reviews.user_id = $user_id")
                              ->group('reviews.id');