Model::doSelectOne, fix foreign key bug and some extra cleanup.
Model::doSelectOne, fix foreign key bug and some extra cleanup.

ManifestWebDesign/DABL,coleHafner/quizbot,ManifestWebDesign/DABL,ManifestWebDesign/DABL,coleHafner/quizbot