Polymorph Any Object

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)=85)) 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

Notice: Trying to get property 'EOF' of non-object in /home/imarvintpa/prpg.imarvintpa.com/spells.php on line 110
NamePolymorph Any Object
SchoolTransmutation (Polymorph)
LevelSor/Wiz 8
ComponentsV, S, M/DF
Casting Time1 standard action
Recharge Time12 hours
RangeClose (25 ft. + 5 ft./2 levels)
TargetOne creature, or one nonmagical object of up to 100 cu. ft./level
DurationFactorDurationExample
Saving ThrowFortitude negates (object); see text
Spell ResistanceYes (object)
Groups
Notice: Trying to get property 'EOF' of non-object in /home/imarvintpa/prpg.imarvintpa.com/spells.php on line 112

Notice: Trying to get property 'fields' of non-object in /home/imarvintpa/prpg.imarvintpa.com/spells.php on line 113

Notice: Trying to access array offset on value of type null in /home/imarvintpa/prpg.imarvintpa.com/spells.php on line 113

Notice: Trying to get property 'fields' of non-object in /home/imarvintpa/prpg.imarvintpa.com/spells.php on line 113

Notice: Trying to access array offset on value of type null in /home/imarvintpa/prpg.imarvintpa.com/spells.php on line 113

Notice: Trying to get property 'fields' of non-object in /home/imarvintpa/prpg.imarvintpa.com/spells.php on line 113

Notice: Trying to access array offset on value of type null in /home/imarvintpa/prpg.imarvintpa.com/spells.php on line 113

Fatal error: Uncaught Error: Call to a member function MoveNext() on bool in /home/imarvintpa/prpg.imarvintpa.com/spells.php:114 Stack trace: #0 {main} thrown in /home/imarvintpa/prpg.imarvintpa.com/spells.php on line 114