Minor fix

Minor fix to database call. Now works with latest version of WHMCS.