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