Changed the queries to use a subselect as otherwise the language order is unpredictable.