<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hey guys,</DIV>
<DIV>When i try to get date(police) from database(postgis), i get this error message. Can someone explain to me what is going on here? the column NAME does exist in the attribute table</DIV>
<DIV>&nbsp;</DIV>
<DIV>msDrawMap(): Image handling error. Failed to draw layer named 'Police'. prepare_database(): Query error. Error declaring cursor: ERROR: column "NAME" does not exist LINE 1: DECLARE mycursor BINARY CURSOR FOR SELECT "NAME"::text,asbin... ^ With query string: DECLARE mycursor BINARY CURSOR FOR SELECT "NAME"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from police WHERE the_geom &amp;&amp; setSRID('BOX3D(337927.246357327 1652890.274125,468593.724439673 1759026.124282)'::BOX3D, find_srid('','police','the_geom') ) </DIV>
<DIV>&nbsp;</DIV>
<DIV>This is the mapfile</DIV>
<DIV>LAYER<BR>&nbsp;NAME 'Police'<BR>&nbsp;&nbsp;&nbsp;&nbsp; CONNECTIONTYPE postgis<BR>&nbsp;&nbsp;&nbsp;&nbsp; CONNECTION 'user=postgres password=boachef19578 dbname=postgis&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; host=localhost'<BR>&nbsp;&nbsp;&nbsp;&nbsp; DATA 'the_geom from police using unique gid'<BR>&nbsp;&nbsp;&nbsp;&nbsp; STATUS DEFAULT<BR>&nbsp;&nbsp;&nbsp;&nbsp; TYPE POINT<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 'Police'<BR>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL&nbsp;'star'&nbsp;&nbsp;&nbsp;&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 6<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WIDTH 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; End</DIV>
<DIV>&nbsp;</DIV>
<DIV>Bernard</DIV>
<DIV>Indiana<BR></DIV></td></tr></table><br>