SELECT 
  lang.name, 
  lang.value 
FROM 
  language_values lang 
WHERE 
  lang.lang_code = 'en' 
  AND lang.name IN ('from', 'to', 'from', 'to')

Query time 0.00211

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1.97"
    },
    "table": {
      "table_name": "lang",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "lang_code",
        "name"
      ],
      "key_length": "392",
      "rows_examined_per_scan": 2,
      "rows_produced_per_join": 2,
      "filtered": "100.00",
      "cost_info": {
        "read_cost": "1.77",
        "eval_cost": "0.20",
        "prefix_cost": "1.97",
        "data_read_per_join": "816"
      },
      "used_columns": [
        "lang_code",
        "name",
        "value"
      ],
      "attached_condition": "((`goimagine`.`lang`.`lang_code` = 'en') and (`goimagine`.`lang`.`name` in ('from','to','from','to')))"
    }
  }
}

Result

name value
from from
to TO