/var/www/townhouse/lib/Doctrine/Connection.php;1082; SQLSTATE[42000]: Syntax error or access violation: 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 ' , i.lat, i.lng) AS i__0 FROM Infrastructure i HAVING i__0 < 10 LIMIT 14' at line 1. Failing Query: "SELECT i.id AS i__id, i.name AS i__name, i.alias AS i__alias, i.typeid AS i__typeid, i.highwayid AS i__highwayid, i.townid AS i__townid, i.address AS i__address, i.phone AS i__phone, i.url AS i__url, i.lat AS i__lat, i.lng AS i__lng, i.imageid AS i__imageid, i.description AS i__description, i.seodata AS i__seodata, geodistance(, , i.lat, i.lng) AS i__0 FROM Infrastructure i HAVING i__0 < 10 LIMIT 14"