I get this error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4 SQL=SELECT company.contactname AS name, company.contactemail AS email, job.title, job.sendemail FROM `kecobo_js_job_companies` AS company JOIN `kecobo_js_job_jobs` AS job ON job.companyid = company.id WHERE job.id =
with this query:
$jobquery = "SELECT company.contactname AS name, company.contactemail AS email, job.title, job.sendemail
FROM `#__js_job_companies` AS company
JOIN `#__js_job_jobs` AS job ON job.companyid = company.id
WHERE job.id = ".$jobid;
Does anybody has a suggestion what could be wrong?