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