Forum OpenACS Development: I have an error message the I don't understand

In OACS 5.2.3 I get the following error log message. I'm wondering what the error message means.

[01/Nov/2007:00:41:17][5796.4103498672][-sched:25-] Error: Expected 1 or 3 arguments after switches
Expected 1 or 3 arguments after switches
while executing
"db_foreach transactions_select "
select o.order_id,ec_order_cost(o.order_id) as total_order_price,
f.transaction_id, f.inserted_date, f.trans..."
===

Where are the 1 or 3 arguments and what are switches?