The answer is simpler then I though. Sqlc( At least for postgres) can't translate the in to a list of items. The result should be got using the ANY and bigserial
select c.* from TB_COMMENTS c where c.id = ANY ($1::BIGSERIAL[]);