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