If you ignore curvature (and use a square box) you could do it a lot more efficiently in a single query, something like:
query = "SELECT TYPE FROM GPS
WHERE NAME='"+name+"'
AND TYPE='"+type+"'
AND X < x+1 AND X > x-1
AND Y < y+1 AND Y > y-1;
If need be, you can then iterate through the result set and filter out pois in the box that wouldn't be in a circle with some maths.