title: Pass Fluid variable to TypoScript
body: <p>I want to pass a variable (uid of category) in Fluid to a TypoScript :</p>
  
  <pre><code> &lt;f:cObject typoscriptObjectPath="lib.testFluid" data="{setting.myvar}/&gt;
  </code></pre>
  
  <p>Then i want to use the var to get all content elements in folder with pid 942 and the category {setting.myvar}</p>
  
  <pre><code>lib.testFluid = COA
  lib.testFluid = CONTENT
  lib.testFluid {
  table = tt_content
      select {
      pidInList = 942
      where = selected_categories = |
  </code></pre>
  
  <p>}</p>
  
  <p>}</p>
  
  <p>This does not work, it creates an MySql syntax error. I also tried using current = 1 instead of the where clause without success. I looked at post <a href="https://stackoverflow.com/questions/43777345/typo3-pass-variable-to-typoscript-via-cobject">TYPO3: pass variable to typoscript via cObject?</a> and I can recreate it but it does not work with my script. (TYPO3 8)
  If i use </p>
  
  <pre><code>...
      where = selected_categories = 13
  ....
  </code></pre>
  
  <p>the scrip will succesfully display all CE with category 13. How do i make it work with a var?</p>