I wrote this query for a joomla plugin
$query = "UPDATE #__content SET fulltext='$_POST[statenames]' WHERE id=$articleId";
But it gives 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 'fulltext = '1' WHERE id = 41' at line 1 SQL=UPDATE jst_content SET fulltext = '1' WHERE id = 41
What is the error?