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