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