ltSet rs=stmt.executeQuery("SELECT * FROM record WHERE (timings BETWEEN"+ t1 +"AND t2 ) and (source="+"'"+from+"' and destination="+"'"+to+"'"+")");


I am getting below error