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