More optimal IN in prepared statements. Unfortunately only works for Postgresql