'Get the participant\'s statement in the language that best matches
the list provided.'

def get_statement(self, langs, scrubbed=False):

    (content, content_scrubbed, lang) = self.db.one(u'\n                                                SELECT    content,    content_scrubbed,    lang\n                                                        FROM    statements\n                                                        JOIN    enumerate(%(langs)s)    langs    ON    langs.value    =    statements.lang\n                                                    WHERE    participant=%(id)s\n                                        ORDER    BY    langs.rank\n                                                    LIMIT    1\n                                ', dict(id=self.id, langs=langs), default=(None, None, None))
    return ((content_scrubbed if scrubbed else content), lang)
