Hello, Im a newbie with QT, I'm having an existing application developed using QT 4.7 . I'm getting an error executing a select query from my QT application. The same query runs successfully and returns 1 row when i execute it from the PSQL Terminal. The error which i get is mentioned below:

near "FROM": syntax error

Kindly help me with the same.

Thanks in advance.