Your syntax of INTO
clause is incorrect
Assuming that your query itself is correct and functional and you have lat
and lon
variables declared change this part
select latitude into lat, longitude into lon
to
SELECT latitude, longitude INTO lat, lon
Here is SQLFiddle demo