Great read, but I'm slightly horrified that it took until #18 to realize "concatenating strings to form SQL queries is a bad idea."
I was uncaffeinated at the time I wrote it, and the order somteimes reflects the order I thought of them in, not the order they happened.