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