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