Code Sample (Damian Sojka) - CodeIgniter Model

Code sample for a potential employer - one of many models from personal
application, built on CodeIgniter (PHP framework).