At some point I got very used to how Codeigniter handles running queries. Certainly running plain SQL queries is rarely the right approach. For projects where Codeigniter was not an option I came up with a simple DB wrapper, making life a lot easier. It’s quite simple, single class, no method chaining like in CI, but does it’s job quite well.
Check it out at https://bitbucket.org/dadasign/mysqlwrapper