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 '3,14,5,8,10,11,12,13) and ticlock = '0' and date<'2020-06-06 23:52:57'' at line 1