Fix the SQL query of getLocalNameByStandardVariableId
Issue: GCP-8962
Reviewer: Mae