Possible Duplicate:
Ambiguous column name error
I want to join 3 tables: post_job, apply_job, and employer_detail.
table1: post_job
job_id, emp_id, job_title
table 2: apply_job
applied_id, job_id, js_id, emp_id
table 3: jobskker_personal
js_id, full_name
I want it to look like this:
job_id, job_title, full_name
I have written a query like this:
"SELECT job_id,job_title,post_date ,full_name "
+ "FROM post_job,applied_jobs,jobseeker_personal WHERE emp_id='"+emp_id+"' ";
It shows an error:
Ambiguous column name 'emp_id'.
Ambiguous column name 'job_id'.
Ambiguous column name 'job_title'.
Can anyone please help me?.