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