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