CakePHP putting quotes around function name in WHERE clause
问题 I'm using various functions from the earthdistance module in PostgreSQL, one of those being ll_to_earth . Given a latitude/longitude combination, I'm trying to retrieve the nearest point from my database via CakePHP 1.2.5 Stable. // set dummy data $latitude = 30.4393696; $longitude = -97.6200043; // create a simple bounding box in the WHERE conditions, sort the points by location, and retrieve the nearest point $location = $this->Location->find('first', array( 'fields' => array( 'id', 'coords