title: Is it correct query for PHP?
body: <pre><code>$query = "INSERT INTO `posts` (title, author, body, tags)
                  VALUES (`$title`, `$author`, `$body`, `$tags`)
                  (SELECT * FROM category WHERE name = $category)";
  </code></pre>
  
  <p>posts and category both are different tables?</p>