I have a big problem with SQLite. When I run this query with MariaDB everything works perfectly, but with SQLite not. Does anyone know an answer? Thanks in advance!