SupeSite info: MySQL Query Error

User: Guest
Time: 2018-8-27 7:53am
Script: /index.php

SQL: SELECT * from [Table]threads a join [Table]posts b on a.tid = b.tid join [Table]attachments c on b.tid = c.tid where a.fid = and a.typeid = 359 and a.displayorder = 0 LIMIT 0,1
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 'and a.typeid = 359 and a.displayorder = 0 LIMIT 0,1' at line 1
Errno.: 1064