I'm trying to compare two values against the values in my table to find the closest one, but each time I try the code (see below) I just get the first row returned
SELECT latitude, longitude, ABS(latitude - 53.316494), ABS(longitude - -6.253541) AS distance
FROM station
ORDER BY distance
LIMIT 1;
Thanks for your help.