The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
SQL Query for number of posts per user group
Hi,
I'm trying to get the number of posts for users in a specific user group in a specific timeframe and am using this query: Code:
SELECT posts, username, email from vb_user WHERE (usergroupid=10 OR usergroupid=62) AND dateline > UNIX_TIMESTAMP('2015-06-30') AND dateline < UNIX_TIMESTAMP('2015-10-01') ORDER BY posts DESC An error occurred while attempting to execute your query. The following information was returned. error number: 1054 error desc: Unknown column 'dateline' in 'where clause' Can anyone help me with this? I have four 4.2.2 PL4 forum sets and this happens on all four If I take out the dateline sections, it works, but it gives me stats for all time, not just the date range I'm looking for. What am I doing wrong? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|