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,' ',p.name) 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: /home/kothamangalam/kothamangalamdiocese.org/models/google.php

Line Number: 1012