Water ionises slightly. The product [H+][OH−] is constant at a given temperature and is called the ionic product of water, Kw. pH and pOH are a short way to write small concentrations of H+ and OH−.
A weak acid ionises only partly. Its Ka shows how far: the larger Ka (the smaller pKa), the stronger the acid. Adding an ion that is already present pushes an ionic equilibrium back. This is the common ion effect.
A buffer resists a change in pH when a little acid or base is added. It is a weak acid with its salt, or a weak base with its salt. Ksp applies to saturated solutions of sparingly soluble salts.