Hello,<br>I'm trying, from mapfile, view the result of query that interrogates two tables of a database postgresql one of which is spatial (station).<br><br>Here is the code:<br><br><pre class="alt2" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px;">
DATA "the_geom from (SELECT station.* FROM station, plj_datalog WHERE station."ident_station"=Plj_datalog."IDENT_station" AND station."type"='HP' AND plj_datalog."DATE_MES"='2004-04-19')foo using unique ident_station using srid=-1"</pre>
<br>This query returns a result under pgAdminIII while under cartoweb I have the following error:<br><br><pre class="alt2" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px;">
<div dir="ltr" style="text-align: left;">Mapserver error: Error in getString(): Parsing error near (the_geom from (SELECT station.* FROM station, plj_datalog WHERE station.):(line 279)</div></pre>
<br>Thanks for your help.<br>