Now does the distance calulation in PHP rather than in the SQL. It works better for NO APPARENT REASON WHATSOEVER.