CREATE TABLE `cms_pm` (id int(50) NOT NULL AUTO_INCREMENT, FROM char(20), TO char(20), title char(50), message text, PRIMARY KEY(id))
a zamiast upragnionej

Cytat
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 'to char(20), title char(50), message text, PRIMARY KEY(id))' at line 1
gapię się na ten kod już od ósmej i nie widzę żadnego błędu
rozwiązany:
CREATE TABLE `cms_pm` (id int(50) NOT NULL AUTO_INCREMENT, message_ FROM char(20), message_to char(20), message_title char(50), message_text text, PRIMARY KEY(id))
pola źle nazwałem