SELECT * FROM docs WHERE app_id = '1' AND (id = 'ws' OR slug = 'ws')