Do a slight modification from what Sandro mentioned
Location LIKE '%|{%LocationID%}|%'
The resulting SQL query would look like this
Location LIKE '|%364%|'
By putting the pipes ( | ) at the beginning and end of the statement, you'll be sure you get a specific location. There could be the chance you will end up having something like 364 and 1364. This would return 2 records if you didn't have the pipes at the beginning and end. This will also require you put a URL alias on the Location page (/Location/{LocationID} for it to function properly and receive the LocationID via the querystring macro.
Read up on macros.
Good luck!