Fixing invalid SQL: "SELECT a.* AS lang_id" doesn't work with MySQL 5.5.