Paul Ramsey wrote: > That's not a SQL data statement, it's a mapserver data statement: > > DATA "the_geom from (select * from twell limit 1) as the_selection" dont forget to put "oid" in the inner select statement: DATA "the_geom from (select oid,* from twell limit 1) as the_selection"