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
However, I get the following error regarding "dateline"
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?