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