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='99ee980ae5a81e7ac0316276dd6741f6'' at line 1