Hi Nirmal,
Since the last_modified_col value specified has a space and semi-colon, the jdbc driver cannot understand what it means and hence was throwing this exception.
The ideal way of querying a data with date in where clause would use a quotes around any date/timestamp value. Since there is a need to put a quote around the select and where clause, its would be better to use double quotes for the complete select statement and a quote around the date/timestamp value. something like below
“select * from test where date > ‘2014-12-17′ AND $CONDITIONS”