1
SELECT *, (3959 * ACOS(COS(RADIANS('42.75')) * COS(RADIANS(lat)) * COS( RADIANS(`long`) - RADIANS('84.74')) + SIN(RADIANS('42.75')) * SIN(RADIANS(lat)))) AS distance FROM table_name WHERE zip != '' HAVING distance < 30 ORDER BY column_name DESC LIMIT 0, 50;