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 ')' at line 1 SQL=select a.* from `xv0sm_social_fields_data` as a inner join `xv0sm_social_fields` as b on a.`field_id` = b.`id` where a.`type` = 'user' and a.`uid` IN ()