Fix bad query in listings transfer script