panic: sql: expected 1 destination arguments in Scan, not <number> golang, pq, sql
<p>I am fetching the data using db.QueryRow. Table created using Postgresql with data type jsonb. Below is code in golang</p>

<pre><code>m := Message{}
err := db.QueryRow("SELECT data FROM message WHERE data-&gt;&gt;'id'=$1", id).Scan(m.Id, m.Type, m.Title)
</code></pre>

<p>panic: sql: expected 1 destination arguments in Scan, not 3. As per <a href="https://golang.org/pkg/database/sql/#Row.Scan" rel="noreferrer">row.Scan</a> can pass n number of destination arguments. Whats wrong with this code?</p>