LIMIT does not work in T-SQL.
Instead, you should use TOP:
SELECT TOP(1) * FROM tableEating WHERE person='$identity';
I hope this works for you.
As Aaron says, you also need ORDER BY if you don't want to receive an arbitrary string.
Chapmic
source share