Changed the syntax to be more DB agnostic.  Tested for MS SQL server as well as MySQL now.