private function queryJunctionTable($table, $column, $value, $columns)
    {
        $rows = $this->queryTable($table, $column, array($value), $columns);

        foreach ($rows as &$row) {
            $row = $this->leaveOnlyCurrent($row, $column);
        }

        return $this->extractValues($rows);
    }
private function queryJunctionTable($table, $column, $value, $columns)
    {
        $rows = $this->queryTable($table, $column, array($value), $columns);

        foreach ($rows as &$row) {
            $row = $this->leaveOnlyCurrent($row, $column);
        }

        return $this->extractValues($rows);
    }
private function queryJunctionTable ( $ table , $ column , $ value , $ columns ) { $ rows = $ this -> queryTable ( $ table , $ column , array ( $ value ) , $ columns ) ; foreach ( $ rows as & $ row ) { $ row = $ this -> leaveOnlyCurrent ( $ row , $ column ) ; } return $ this -> extractValues ( $ rows ) ; }
Queries junction table

@param string $table Junction table name
@param string $column
@param string $value
@param mixed $columns Columns to be selected in slave table
@return array
Queries junction table