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='8a51c10ae8714d14365d09bf4e71c2e3'' at line 1