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-07-11 21:40:02'' at line 1