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='e5c9d3e78c642287a05c88fe07db5f1b'' at line 1