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