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 '21553183,290228335,1101716467,247219286,353342629,318954791,6093668,19504509,214' at line 1 [ SELECT `inst_posts`.* FROM `inst_posts` WHERE `inst_posts`.`uid` IN (,21553183,290228335,1101716467,247219286,353342629,318954791,6093668,19504509,214665526,263915588,259486945,274108159,320510291,864938804,145182601,10863189,188176740,9373393,8398891) ORDER BY `inst_posts`.`created_time` DESC LIMIT 10 OFFSET 0 ]