Ich kann die folgende Abfrage in Drupal7-Standards nicht ausführen. Kann mir jemand dabei helfen? Es ist wenig dringend ...
SELECT n.nid AS nid, n.title AS title, count(n.title) AS ncount
FROM node n
INNER JOIN taxonomy_index tn ON n.nid = tn.nid
WHERE (n.type = 'test')
AND (tn.tid IN( 23,37))
AND (n.title LIKE '%name%')
AND (n.status = 1)
GROUP BY n.nid
HAVING ncount = 2
$query->orderBy('ncount', 'DESC');