Error

Page: /job?job_reference=JSM%2011636&job_title=Environmental26%20Social%20Investment%20Consultant20London&id=125
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 1
Referrer:
SQL: SELECT locations.title FROM locations LEFT JOIN jobs_locations ON locations.id = jobs_locations.locations_id WHERE jobs_locations.jobs_id =

Stack Trace

#0 mysql->error() called at [/var/sites/j/jsm-associates.co.uk/public_html/cms_resources/classes/mysqli.class.php:44]
#1 mysql->Q() called at [/var/sites/j/jsm-associates.co.uk/public_html/cms_resources/classes/mysqli.class.php:142]
#2 mysql->R(SELECT locations.title FROM locations LEFT JOIN jobs_locations ON locations.id = jobs_locations.locations_id WHERE jobs_locations.jobs_id = ) called at [/var/sites/j/jsm-associates.co.uk/public_html/job.php:6]
#3 include(/var/sites/j/jsm-associates.co.uk/public_html/job.php) called at [/var/sites/j/jsm-associates.co.uk/public_html/index.php:181]