function db_rewrite_sql() requires properly written query string. So, I had a problem with example in this post, list for anonymous was empty. Then I little changed sql string to "SELECT n.nid, n.title FROM {node} n WHERE n.type = 'product' AND n.status = '1' ORDER BY n.title" after that works perfect :)
NOTE!
function
db_rewrite_sql()
requires properly written query string. So, I had a problem with example in this post, list for anonymous was empty. Then I little changed sql string to"SELECT n.nid, n.title FROM {node} n WHERE n.type = 'product' AND n.status = '1' ORDER BY n.title"
after that works perfect :)Thanks Kosta!