SELECT 
tew_location.loc_text AS loc_text
,tew_translatedtext.tra_0 AS tra_0
, tew_location.loc_id AS loc_id
 FROM 
tew_location
LEFT JOIN
tew_translatedtext
ON
tew_translatedtext.tra_objectid = tew_location.loc_id
AND
tew_translatedtext.tra_strobjectid = ]]loc[[
AND
tew_translatedtext.tra_lan_strid =]]%PROJECT_LNG_CODE%[[