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