Undetectable Alignment

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)=3562)) 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
NameUndetectable Alignment
SchoolAbjuration
LevelArc 2, Asn 2, Beguiler 1, Brd 1, Clr 2, HB 1, KotC 2, Liberation 2, Pal 2, Vassal of Bahamut 2
ComponentsV, S
Casting Time1 standard action
Recharge Time24 hours
RangeClose (25 ft. + 5 ft./2 levels)
TargetOne creature or object
Duration1 day
Saving ThrowWill negates (object)
Spell ResistanceYes (object)
Groups