Возникла ошибка базы данных

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.ReadyStatus>=6' at line 1

SELECT count(p.PersonID) as numrows FROM persons p INNER JOIN `personid_placeid` ppp ON p.PersonID = ppp.personid WHERE p.PersonID>0 AND ppp.placeid= AND p.ReadyStatus>=6

Filename: /var/www/u1905948/data/www/lichnosti.info/models/search_model.php

Line Number: 61