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