The NHS has issued a warning for those taking certain medications to be cautious when using painkillers such as paracetamol and ibuprofen.