Try an SQL statement looking like:
SELECT name FROM catagories WHERE workrelated IN('Y','N') ORDER BY name
I don't think you can use a placeholder for this kind of filter. You'll have to use oldfashioned string interpolation. Be careful about quoting, if the strings aren't always this simple.