2011-09-20, 05:51 PM
When i try to run this in task manager I get a error. Please help!
SQL Error:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND allownotices = 1 AND u.uid NOT IN(SELECT uid FROM mybb_rememberus_log WHERE ' at line 1
Query:
SELECT * FROM mybb_users u LEFT JOIN mybb_userfields f ON u.uid = f.ufid WHERE lastactive = AND allownotices = 1 AND u.uid NOT IN(SELECT uid FROM mybb_rememberus_log WHERE rid=1 OR rid=0) LIMIT 25
SQL Error:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND allownotices = 1 AND u.uid NOT IN(SELECT uid FROM mybb_rememberus_log WHERE ' at line 1
Query:
SELECT * FROM mybb_users u LEFT JOIN mybb_userfields f ON u.uid = f.ufid WHERE lastactive = AND allownotices = 1 AND u.uid NOT IN(SELECT uid FROM mybb_rememberus_log WHERE rid=1 OR rid=0) LIMIT 25