I read article where it was written to use db_rewrite_sql($query)
. In Drupal 7, you need to use addTag('node_access')
along with `db_select().
I have a query with 8 columns and 4 conditions; for simplicity I am using db_query()
.
How can I use db_rewrite_sql()
with db_query()
?