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='05e99e95d3ecd40c3ba845cbfc16dcb9'' at line 1