fix sql query =< problem with geom