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