SELECT * FROM docs WHERE app_id = '4' AND (id = 'api' OR slug = 'api')