Protection from Energy

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)=3392)) 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
NameProtection from Energy
SchoolAbjuration
LevelAPeace 3, Arc 3, Blg 3, Blk 3, Clr 3, Dem 2, Drd 3, Duskblade 3, HB 3, Hoard 3, HotD 3, KotC 3, Luck 3, Protection 3, Rgr 2, Shu 3, Sor/Wiz 3, Vassal of Bahamut 3, Wuj 3
ComponentsV, S, DF
Casting Time1 standard action
Recharge Time1 hour
RangeTouch
TargetCreature touched
Duration10 min./level or until discharged
Saving ThrowFortitude negates (harmless)
Spell ResistanceYes (harmless)
Groups