At line 269 of gcal.module the select statement of gcal_accounts function should be

SELECT * FROM {gcal_accounts}

instead of

SELECT * FROM gcal_accounts

otherwise it'll fail with all tables with a prefix