You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '1249829,1306103,1249822,1304161,1249818,1302908 AND (IDevent=11 || IDevent=13)' at line 11