here is my code i wish anybody can help me to solve my problem. my problem is in c.count and p.count lines. each of them does different works.
SELECT tablesite.name,
tablesite.family,
tablesite.phone_number,
job_list.job_name,
p.COUNT(action.service_provider_id) as positive,
n.COUNT(action.service_provider_id) as negative
FROM tablesite
INNER JOIN relation
on tablesite.id_user=relation.user_id
INNER JOIN job_list
on relation.job_id=job_list.job_id
LEFT JOIN action p
ON tablesite.id_user=action.service_provider_id
AND action.vote !='' AND action.customer_comment =''
LEFT JOIN action n
ON tablesite.id_user=action.service_provider_id
AND action.vote !='' AND action.customer_comment !=''
GROUP BY name, family,job_name, phone_number
i can not use p.count or n.count how can solve this problem.
error: #1630 - FUNCTION p.COUNT does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual