MySQL
User 'leopompevcmvc' has exceeded the 'max_questions' resource (current value: 64000)

Query

			select `id`, `name`, ifNull((select expression from language│translation where translationId = `language`.`name` && languageId in('en', 'fr') && expression != '' order by field(languageId, 'en', 'fr') limit 1), "") as `[TR]name`, `localName`, `flag`, `code`
			from `language`
			where id in (select languageId from `language│website` where websiteId = 2)
			order by if(id = 'en', 0, 1), localName