SELECT * FROM map_articles WHERE cat='Model Aircrafts' AND id NOT IN (0,28,26,20,12,1,18,22,24,3,4,13,17,,14,11,5,23,21,16,6,7) ORDER BY RAND() LIMIT 1: 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,11,5,23,21,16,6,7) ORDER BY RAND() LIMIT 1' at line 2