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