Magic Circle against Good

Make a spell card:

SELECT SPELL_GROUP.SPELL_ID, GROUPS.GROUP_ID, GROUPS.GROUPIE, GROUPS.DESCRIPTION FROM GROUPS INNER JOIN SPELL_GROUP ON GROUPS.GROUP_ID = SPELL_GROUP.GROUP_ID WHERE (((SPELL_GROUP.SPELL_ID)=3319)) ORDER BY GROUPIE;
LD(0101064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUPS INNER JOIN SPELL_GROUP ON GROUPS.GROUP_ID = SPELL_GROUP.GROUP_ID WHERE ((' at line 1
NameMagic Circle against Good
SchoolAbjuration [Evil]
LevelArc 3, Asn 3, Clr 3, Dem 2, Evil 3, MH 2, Sor/Wiz 3, Wuj 3
ComponentsV, S, M/DF
Casting Time1 standard action
Recharge Time4 hours
RangeTouch
Area10-ft.-radius emanation from touched creature
Duration10 min./level
Saving ThrowWill negates (harmless)
Spell ResistanceNo; see text
Groups