I am getting this error when trying to access the dashboard and the page does not display:
Recoverable fatal error: Argument 2 passed to db_query() must be an array, integer given, called in /home/padbusin/public_html/draws/sites/all/modules/ms_affiliates/ms_affiliates.module on line 470 and defined in db_query() (line 2282 of /home/padbusin/public_html/draws/includes/database/database.inc).
When I disable the MS Core module, I am able to access the dashboard.








I have the affiliate and Pay to publish modules.
I can have ms core, ms pay to publish turned on and I can access the dashboard.
But if I turn on ms affiliate or ms credit I get errors:
ms affiliate error:
Recoverable fatal error: Argument 2 passed to db_query() must be an array, integer given, called in /home/padbusin/public_html/draws/sites/all/modules/ms_affiliates/ms_affiliates.module on line 470 and defined in db_query()
ms credit error:
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'expiration' in 'where clause': SELECT uid, SUM(credits) AS total_credits FROM {ms_credit_transactions} WHERE uid = :uid AND (expiration = :zero OR expiration > :now) GROUP BY uid; Array ( [:uid] => 3 [:zero] => 0 [:now] => 1320521558 ) in ms_credits_get_user_balance() (line 264 of /home/padbusin/public_html/draws/sites/all/modules/ms_core/ms_credits/ms_credits.module)