Fix SQL so it works with sqlite
Fix SQL so it works with sqlite

git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@1180 820eb932-12ee-0310-9ca8-eeb645f39767

seyedrazavi/publify,kmathew96/typo,randyramadhana/typo,LOSDev/CS169-Homework-5,telekomatrix/publify,vivekv009/inuni-blog,matthewliu/saas_hw5,publify/publify,waruboy/publify,hmallett/publify,lbiedinger/cs_typo,silygose/typo,alexhuang91/typo,shaomingtan/publify,wizzro/CS169.2x-hw1-2,leminhtuan2015/portal_staging,arramos84/cs169-hw5,leminhtuan2015/temona_staging,mplstar/blog,saasbook/typo,pr0d1r2/typo,edgarpng/typo-blog,shimolshah/typo-backup,tinnywang/typo,blairanderson/that-music-blog,leminhtuan2015/temona_staging,leminhtuan2015/nginx_capuchino_rails,Chickey2/typo,zsstor/Typo,sf-wdi-25/publify_debugging_lab,agiamas/publify,K-and-R/publify,jcfausto/publify,kryptykfysh/saas_typo,freeranger/typo,kildem/blog,moneyadviceservice/publify,pr0d1r2/typo,nvgit/typo1,silygose/typo,nvgit/typo1,solanolabs/publify,framgia/publify,Juuro/publify,nguyenduyta/deploy-test,alexhuang91/typo,publify/publify,kildem/blog,burakicel/Burakicel.com,babaa/foodblog,kildem/blog,ndueber/cs-169_hw5,McWild/psdtohtml,sbstn-jmnz/typo,vincenttian/cs169hw5,amba178/legacy_code,mrfosip/typo,telekomatrix/publify,LOSDev/CS169-Homework-5,kmathew96/typo,solanolabs/publify,natesholland/typo,telekomatrix/publify,nguyenduyta/deploy-test,publify/publify,solanolabs/publify,framgia/publify,sbstn-jmnz/typo,faraazkhan/myblog,mozzan/publify,McWild/psdtohtml,lbiedinger/cs_typo,P5hil/typo,edgarpng/typo-blog,LOSDev/CS169-Homework-5,saasbook/typo,LOSDev/CS169-Homework-5,zsstor/Typo,leminhtuan2015/portal_staging,ashrob/typo,mozzan/publify,waruboy/publify,congchen5/typo,blairanderson/that-music-blog,arramos84/cs169-hw5,hmallett/publify,freibuis/publify,moneyadviceservice/publify,mplstar/blog,aren19/HW_5,babaa/foodblog,Juuro/publify,pr0d1r2/typo,moneyadviceservice/publify,sf-wdi-25/publify_debugging_lab,felixitous/typoo,backpackerhh/typo,shrayus/hw-refactoring-legecy-code,ACPK/typo,leminhtuan2015/temona_staging,K-and-R/publify,moneyadviceservice/publify,Endymion1977/typo,arramos84/cs169-hw5,bikmaeff/CS169.2_hw12,vivekv009/inuni-blog,leminhtuan2015/nginx_capuchino_rails,freibuis/publify,P5hil/typo,ashleymichal/typo,matthewliu/saas_hw5,whithajess/publify,bikmaeff/CS169.2_hw12,boostsup/HW5_typo,ashleymichal/typo,faraazkhan/myblog,shrayus/hw-refactoring-legecy-code,sf-wdi-25/publify_debugging_lab,kildem/blog,boostsup/HW5_typo,congchen5/typo,leminhtuan2015/nginx_capuchino_rails,shimolshah/typo-backup,bsiebz/legacyhw,SF-WDI-LABS/publify_debugging_lab,ndueber/cs-169_hw5,burakicel/Burakicel.com,leminhtuan2015/test_temona,wizzro/CS169.2x-hw1-2,mozzan/publify,xwang191/-edX.CS169.2x.hw1,pr0d1r2/typo,mrfosip/typo,gvaquez/typo,ACPK/typo,felixitous/typoo,shaomingtan/publify,bikmaeff/CS169.2_hw12,tinnywang/typo,ACPK/typo,blairanderson/that-music-blog,aren19/HW_5,P5hil/typo,zsstor/Typo,K-and-R/publify,randyramadhana/typo,vincenttian/cs169hw5,Endymion1977/typo,bsiebz/legacyhw,agiamas/publify,drakontia/publify,leminhtuan2015/portal_staging,silygose/typo,seyedrazavi/publify,jcfausto/publify,xwang191/-edX.CS169.2x.hw1,nvgit/typo1,totzYuta/coding-diary-of-totz,freeranger/typo,vincenttian/cs169hw5,robinparadise/typo,mplstar/blog,whithajess/publify,robinparadise/typo,leminhtuan2015/nginx_capuchino_rails,kmathew96/typo,hmallett/publify,gvaquez/typo,amba178/legacy_code,McWild/psdtohtml,waruboy/publify,vivekv009/inuni-blog,ashleymichal/typo,jcfausto/publify,SF-WDI-LABS/publify_debugging_lab,sbstn-jmnz/typo,natesholland/typo,boostsup/HW5_typo,McWild/psdtohtml,drakontia/publify,freeranger/typo,backpackerhh/typo,tedfrazier/saas_typo,pr0d1r2/typo,ashrob/typo,nvgit/typo1,Chickey2/typo,lbiedinger/cs_typo,tedfrazier/saas_typo,pr0d1r2/typo,bsiebz/legacyhw,kryptykfysh/saas_typo,pr0d1r2/typo,shimolshah/typo-backup,Juuro/publify,ndueber/cs-169_hw5,nguyenduyta/deploy-test,leminhtuan2015/test_temona,totzYuta/coding-diary-of-totz,felixitous/typoo,shrayus/hw-refactoring-legecy-code,khlumzeemee/typo,whithajess/publify,natesholland/typo,SF-WDI-LABS/publify_debugging_lab,freibuis/publify,saasbook/typo,randyramadhana/typo,McWild/psdtohtml,seyedrazavi/publify,leminhtuan2015/portal_staging,backpackerhh/typo,leminhtuan2015/test_temona,khlumzeemee/typo,agiamas/publify,pr0d1r2/typo