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