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