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