Where [CastleType] is set as data type \"text\" in SQL Server and the query is:
SELECT * FROM [Village] WHERE [CastleType] = \'foo\'
I
This works in MSSQL and MySQL:
SELECT * FROM Village WHERE CastleType LIKE '%foo%';