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