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