Guest User

Untitled

a guest
May 4th, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1.  
  2. SELECT node.type, count(node.nid) as count, node.nid, node.title
  3. FROM node node, content_field_tourist_attraction ta
  4. WHERE ta.field_tourist_attraction_nid = node.nid AND node.type IN ('tourist_attraction')
  5. GROUP BY node.nid ORDER BY count DESC;
Advertisement
Add Comment
Please, Sign In to add comment