$IMEI è un numero o una stringa?

prova in questo modo

codice:
SELECT Lat,Lng FROM storico WHERE IMEI='$IMEI' ORDER by `Data` DESC