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