Fixed db calls that were made to functions not present in JDatabase driver for Joomla 1.5
Merge pull request #280 from tomfuller2/master

Fixed some errors in the $db call