On Dec 4, 2007 6:04 PM, Peck, Brian <brian(dot)peck(at)lmco(dot)com> 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 ).