SELECT 
  lang.name, 
  IF(
    cscart_ult_language_values.value IS NULL, 
    lang.value, cscart_ult_language_values.value
  ) as value 
FROM 
  cscart_language_values lang 
  LEFT JOIN cscart_ult_language_values ON cscart_ult_language_values.name = lang.name 
  AND company_id = 1 
  AND cscart_ult_language_values.lang_code = lang.lang_code 
WHERE 
  lang.lang_code = 'it' 
  AND lang.name IN (
    'new_post', 'abt__ut2.discussion.asr_title', 
    'abt__ut2.discussion.avr_part1', 
    'abt__ut2.discussion.avr_part2', 
    'abt__ut2.discussion.avr_part1', 
    'abt__ut2.discussion.avr_part2', 
    'abt__ut2.discussion.asr_title', 
    'abt__ut2.discussion.avr_part1', 
    'abt__ut2.discussion.avr_part2', 
    'abt__ut2.discussion.avr_part1', 
    'abt__ut2.discussion.avr_part2', 
    'abt__ut2.discussion.star', 'abt__ut2.discussion.star', 
    'selected', 'abt__ut2.discussion.star', 
    'show_all', 'abt__ut2.discussion.verified_buyer', 
    'abt__ut2.discussion.verified_buyer_bp', 
    'abt__ut2.discussion.see_more', 
    'abt__ut2.discussion.see_less', 
    'abt__ut2.discussion.verified_buyer', 
    'abt__ut2.discussion.verified_buyer_bp', 
    'abt__ut2.discussion.new_post_title', 
    'abt__ut2.discussion.new_post_descr', 
    'no_posts_found', 'abt__ut2.discussion.new_post_title', 
    'abt__ut2.discussion.new_post_descr', 
    'no_posts_found', 'new_post', 'abt__ut2.discussion.asr_title', 
    'abt__ut2.discussion.avr_part1', 
    'abt__ut2.discussion.avr_part2', 
    'abt__ut2.discussion.avr_part1', 
    'abt__ut2.discussion.avr_part2', 
    'abt__ut2.discussion.asr_title', 
    'abt__ut2.discussion.avr_part1', 
    'abt__ut2.discussion.avr_part2', 
    'abt__ut2.discussion.avr_part1', 
    'abt__ut2.discussion.avr_part2', 
    'abt__ut2.discussion.star', 'abt__ut2.discussion.star', 
    'selected', 'abt__ut2.discussion.star', 
    'show_all', 'abt__ut2.discussion.verified_buyer', 
    'abt__ut2.discussion.verified_buyer_bp', 
    'abt__ut2.discussion.see_more', 
    'abt__ut2.discussion.see_less', 
    'abt__ut2.discussion.verified_buyer', 
    'abt__ut2.discussion.verified_buyer_bp', 
    'abt__ut2.discussion.new_post_title', 
    'abt__ut2.discussion.new_post_descr', 
    'no_posts_found', 'abt__ut2.discussion.new_post_title', 
    'abt__ut2.discussion.new_post_descr', 
    'no_posts_found'
  )

Query time 0.00136

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "33.61"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_ult_language_values",
          "access_type": "system",
          "possible_keys": [
            "PRIMARY"
          ],
          "rows_examined_per_scan": 0,
          "rows_produced_per_join": 1,
          "filtered": "0.00",
          "const_row_not_found": true,
          "cost_info": {
            "read_cost": "0.00",
            "eval_cost": "0.20",
            "prefix_cost": "0.00",
            "data_read_per_join": "408"
          },
          "used_columns": [
            "lang_code",
            "name",
            "value",
            "company_id"
          ]
        }
      },
      {
        "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": 14,
          "rows_produced_per_join": 14,
          "filtered": "100.00",
          "index_condition": "((`eshopuga_upgr_4122`.`lang`.`lang_code` = 'it') and (`eshopuga_upgr_4122`.`lang`.`name` in ('new_post','abt__ut2.discussion.asr_title','abt__ut2.discussion.avr_part1','abt__ut2.discussion.avr_part2','abt__ut2.discussion.avr_part1','abt__ut2.discussion.avr_part2','abt__ut2.discussion.asr_title','abt__ut2.discussion.avr_part1','abt__ut2.discussion.avr_part2','abt__ut2.discussion.avr_part1','abt__ut2.discussion.avr_part2','abt__ut2.discussion.star','abt__ut2.discussion.star','selected','abt__ut2.discussion.star','show_all','abt__ut2.discussion.verified_buyer','abt__ut2.discussion.verified_buyer_bp','abt__ut2.discussion.see_more','abt__ut2.discussion.see_less','abt__ut2.discussion.verified_buyer','abt__ut2.discussion.verified_buyer_bp','abt__ut2.discussion.new_post_title','abt__ut2.discussion.new_post_descr','no_posts_found','abt__ut2.discussion.new_post_title','abt__ut2.discussion.new_post_descr','no_posts_found','new_post','abt__ut2.discussion.asr_title','abt__ut2.discussion.avr_part1','abt__ut2.discussion.avr_part2','abt__ut2.discussion.avr_part1','abt__ut2.discussion.avr_part2','abt__ut2.discussion.asr_title','abt__ut2.discussion.avr_part1','abt__ut2.discussion.avr_part2','abt__ut2.discussion.avr_part1','abt__ut2.discussion.avr_part2','abt__ut2.discussion.star','abt__ut2.discussion.star','selected','abt__ut2.discussion.star','show_all','abt__ut2.discussion.verified_buyer','abt__ut2.discussion.verified_buyer_bp','abt__ut2.discussion.see_more','abt__ut2.discussion.see_less','abt__ut2.discussion.verified_buyer','abt__ut2.discussion.verified_buyer_bp','abt__ut2.discussion.new_post_title','abt__ut2.discussion.new_post_descr','no_posts_found','abt__ut2.discussion.new_post_title','abt__ut2.discussion.new_post_descr','no_posts_found')))",
          "cost_info": {
            "read_cost": "30.81",
            "eval_cost": "2.80",
            "prefix_cost": "33.61",
            "data_read_per_join": "5K"
          },
          "used_columns": [
            "lang_code",
            "name",
            "value"
          ]
        }
      }
    ]
  }
}

Result

name value
abt__ut2.discussion.asr_title Average star rating
abt__ut2.discussion.avr_part1 Average rating
abt__ut2.discussion.avr_part2 out of 5
abt__ut2.discussion.new_post_descr Tell us something about it and help others to make the right decision
abt__ut2.discussion.new_post_title Have you used the product?
abt__ut2.discussion.see_less Less
abt__ut2.discussion.see_more More
abt__ut2.discussion.star [n] Star|[n] Stars
abt__ut2.discussion.verified_buyer Verified buyer
abt__ut2.discussion.verified_buyer_bp Bought this product
new_post Nuovo messaggio
no_posts_found Nessun messaggio trovato
selected Selezionato
show_all Mostra tutto