sql >> Base de Datos >  >> RDS >> Mysql

Únete a Zend Framework

Intente agregar un groupBy a su consulta (no probado)

$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');