Text datatype mapping in resultset and added exception for subqueries in...

... from clause
Put the message in exception as well