How to dynamically populate the condition method argument in a Dynamic Query
If anyone ever need that i got an answer there. 

http://drupal.org/node/12843

This is useful as well : 

https://stackoverflow.com/questions/7476611/how-to-write-a-query-with-a-dynamic-where-clause