"AND c.cutoffstop < %NOW% "#ifdef USE_PGSQL"AND balance * -1 > (?/100::numeric * tariff) "
#else
"AND balance * -1 > (?/100 * tariff) "
#endif
"%groups%egroups%nets%enets"
"JOIN (SELECT SUM(l.value) AS liab, a.customerid ""FROM assignments a JOIN liabilities l ON (a.liabilityid = l.id) ""WHERE a.suspended = 0 AND (a.datefrom <= UNIX_TIMESTAMP() OR a.datefrom = 0) ""AND (a.dateto >= UNIX_TIMESTAMP() OR a.dateto = 0) ""GROUP BY a.customerid ) l ON (l.customerid = c.id)"