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