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