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