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 '1307524,1306292,1293498,1291137,1290491,1289811 AND (IDevent=11 || IDevent=13)' at line 11