Crew PHP |
|
SELECT COUNT( T.topic_ID ) as topicCount, COUNT( F.reactie_ID ) as reactieCount
FROM forumTopics as T
INNER JOIN forumFora as F ON ( T.topic_ForumID = F.forum_ID )
INNER JOIN forumReacties as R ON ( T.topic_ForumID = R.reactie_TopicID )
WHERE T.topic_ForumID = $var
SELECT COUNT( T .topic_ID ) as topicCount , COUNT( F .reactie_ID ) as reactieCount FROM forumTopics as T INNER JOIN forumFora as F ON ( T .topic_ForumID = F .forum_ID ) INNER JOIN forumReacties as R ON ( T .topic_ForumID = R .reactie_TopicID ) WHERE T.topic_ForumID = $var
oh, een triple join heb k nog nooit gedaan
poging 2, zo niet? |