MyBB Community Forums

Full Version: MyBB SQL Error?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to do a $db->simple select query, and I get this error:


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 '14,13,10' at line 1

Query:SELECT uid FROM mybb_threads WHERE 1,14,13,10.


I need it to be WHERE tid's = 1,14,13,10. How would I do that?
it can be like below
SELECT uid FROM mybb_threads WHERE tid IN (1,14,13,10)
Thanks.