title: Using Sphinx for the first time - configuring the sql_query key
body: <p>I'm currently practicing using Sphinx, I've not far off done much, except the configuration what I'm trying to do. The <code>sql_query</code> key is leaving me somewhat confused what to put there, I read in the Sphinx <a href="http://sphinxsearch.com/docs/1.10/conf-sql-query.html" rel="nofollow">documentation of sql_query</a> but it doesn't seem to clear my mind from knowing what to do since I have many SELECTs in my web application, and I want to use Sphinx for my search and the SQL is often changed (upon user search filtering).</p>
  
  <p>As of my search using MySQL, I want to integrate Sphinx to my web application, if the <code>sql_key</code> is not optional, do I have to expect to put the whole search SQL query into that field or do I pick out the necessary fields from tables to start a reindex?</p>
  
  <p>Can someone point me to the right direction so I can get things going well with Sphinx and my web application.</p>