A Database Error Occurred

Error Number: 1064

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 'AND p.priestId=i.parish_vicar' at line 2

SELECT CONCAT(p.houseName,' ',substr(p.name,4)) AS name FROM priests p,institutions_parish i,institutions n WHERE n.id=i.institution_id AND n.id = AND p.priestId=i.parish_vicar

Filename: /opt/lampp/htdocs/live/completed/ekmdiocese/models/google.php

Line Number: 1113