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