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