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