SQL: SELECT t.*, mf.avatar b.pid FROM [Table]threads t
left join [Table]bookmarks b on t.tid=b.tid and b.uid='1'
LEFT JOIN [Table]memberfields mf ON(mf.uid = t.authorid)
WHERE t.tid IN (1,2,4,212,215,230) AND t.displayorder IN (2, 3)
ORDER BY displayorder DESC, lastpost DESC
LIMIT 0, 6
Error: 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 '.pid FROM [Table]threads t
left join [Table]bookmarks b on t.tid=b.tid and b.uid='' at line 1
Errno.: 1064 |