Here is the query for the dataset:
SELECT DISTINCT CompanyId, Company
FROM User_Hierarchy_Mapping
WHERE UserId = @FieldManager
FieldManager is the parameter name. It's not taking the value of the parameter.
Please help me with the syntax to pass a parameter to a MySQL query.