No records returned with ExecuteQuery function

Hi,
I am using the ExecuteQuery Function. It takes "DataSource" and "Query" as parameters and both have to be text.
It is working fine when I am selecting all the records from the table like "SELECT * FROM TABLE_NAME".However whenever I am specifying any particular field name it is not returning any record though I am providing the correct field name. Could anyone has any idea about this?...

OriginalPostID-128283

OriginalPostID-128283

  Discussion posts and replies are publicly visible