On Dec 4, 2007 6:04 PM, Peck, Brian <brian.peck@xxxxxxxx> wrote: > SELECT source_id as vertex INTO result FROM $3 ORDER BY > Distance(the_geom,PointFromText(POINT( $1 $2 ))) LIMIT 1; I think you're missing a comma, e.g. POINT( $1 , $2 ). ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster