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