I have to query a database of thousands of entries and order this by the distance from a specified point.
The issue is that each entry has a latitude and longitude a
i think stored procedures are what you're looking for.