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