Select only id from ModelSQL.search with query
Such query is only used to create SQL clauses of the form `[('id', 'in', query)]` so there is no reason to select other columns. /cc @nicoe
issue