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 '1237988,1307991,1237977,1304059,1237971,1237954 AND (IDevent=11 || IDevent=13)' at line 11