Wrap the table with {}.
Also, use the correct placeholder syntax to insert, for example,% d for numbers,% s for strings.
Here is the API function page:
http://api.drupal.org/api/function/db_query/6
Note that he has arguments.
Example:
db_query('INSERT INTO {tablename} (field1, field2) VALUES ("%s", "%s")', $field1, $field2);
source share