The "and_" function is expecting two arguments, not a series of *args. It works when you remove the third argument because you then have the expected two arguments.
Either use nested calls to "and_", or multiple calls to filter(), and build up the query in a generative fashion, like this: Event.query.filter(Event.id < id_under).filter(Event.feed == True).filter(Event.ns_id.in_(ns_list)).limit(..... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---