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