code: function(temp_target_language_slug) {
              let result = query('select tl.* from target_language as tl' +
                  ' left join temp_target_language as ttl on ttl.approved_target_language_slug=tl.slug' +
                  ' where ttl.slug=?', [temp_target_language_slug]);
              if(result.length > 0) {
                  delete result[0].id;
                  return result[0];
              }
              return null;
          }
docs: Returns the target language that has been assigned to a temporary target language.
  
  Note: does not include the row id. You don't need it
  
  @param temp_target_language_slug {string} the temporary target language with the assignment
  @returns {{}|null} the language object or null if it does not exist