private function getIdsFromJunction($table, $column, $key, $value)
    {
        return $this->db->select($column)
                        ->from($table)
                        ->whereEquals($key, $value)
                        ->queryAll($column);
    }
private function getIdsFromJunction($table, $column, $key, $value)
    {
        return $this->db->select($column)
                        ->from($table)
                        ->whereEquals($key, $value)
                        ->queryAll($column);
    }
private function getIdsFromJunction ( $ table , $ column , $ key , $ value ) { return $ this -> db -> select ( $ column ) -> from ( $ table ) -> whereEquals ( $ key , $ value ) -> queryAll ( $ column ) ; }
Fetches values from junction table

@param string $table Junction table name
@param string $column Column to be selected
@param string $key
@param string $value
@return array
Fetches values from junction table