Tinymce sql syntax error

i am using editor of tinymce
from here

but facing problem when making some data in this and saving that through mysql query in colum
ErroR
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 's leading centre for studies in education and related disciplines

i think this error is becoz of difference syntaxes which m inserting lIke table " ’ this type of things
what is the solution of that i don’t get this message which function use fo inserting data in table

before using it in the query, pass the data through mysql_real_escape_string()

data is inserting but now new problem which data is doing echo that show not code impletation
direct shoing this <table><tr><td>data
instead of showing real working of put of table and other style