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-08-03 18:37:30'' at line 1