A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'id' of non-object

Filename: controllers/location.php

Line Number: 78

Database Error

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 status=1 AND url_name!='f3a007a452ab112834c1ee5d9289f2a1' LIMIT 10' at line 1

SELECT name, url_name FROM kneipen_locations WHERE place_id = AND status=1 AND url_name!='f3a007a452ab112834c1ee5d9289f2a1' LIMIT 10