It could be gear oil and bad filter. But before jumping on to oil, disconnect battery for 5 mins and connect back and try shifting to P if it goes it cold be electrical glicth and dont worry. Ford focus is quite notorious in these unexplainable electrical glicthes.