Chain Lightning

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)=3059)) 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
NameChain Lightning
SchoolEvocation [Electricity]
LevelAir 6, Arc 7, Duskblade 5, Shu 7, Sor/Wiz 6, Wmg 6
ComponentsV, S, F
Casting Time1 standard action
Recharge TimeGeneral
RangeLong (400 ft. + 40 ft./level)
TargetsOne primary target, plus one secondary target/level (each of which must be within 30 ft. of the primary target)
DurationInstantaneous
Saving ThrowReflex half
Spell ResistanceYes
Groups