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 '10,13,17,20,21,23,24,31,34,35,36,37,40,45) ORDER BY date DESC LIMIT 0,10' at line 8