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 'AND basketSession='bb82752c51dd8e0a5749f04b3d65736b'' at line 1