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