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