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