The query in question is the following:
SELECT * FROM options WHERE id = any(SELECT option_ids FROM workshops WHERE id=3)
ERROR: pq: operator does not exist: integer = integer[]
Basically the statement inside any() returns an array of ids which I want to use to get some rows on the options table.
I don't understand why is it trying to compare an integer to the whole array, isnt any supposed to compare a single int to multiple integers in an array?