Database error: Invalid SQL:
SELECT DISTINCT(locality), localitytowncounty AS display_value
FROM food_idx_locality
WHERE
(locality LIKE 'b%') AND SQRT(POWER(ABS(589317 - xm), 2) + POWER(ABS(5954533 - ym), 2)) <= 4000 AND f_country = 224 AND (street LIKE 'west' OR street LIKE 'west %' OR street LIKE 'the west') AND (town LIKE 'batley')
ORDER BY locality
MySQL error: 1054 (1054)
Session halted.