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